Skip to content

Conversation

@pkrog
Copy link

@pkrog pkrog commented Nov 19, 2015

Hi,

I'm a French software developer, working at CEA (http://www.cea.fr/english-portal). For a project using Galaxy (https://galaxyproject.org/), I've been looking at the related project Planemo (http://planemo.readthedocs.org/en/latest/index.html), which uses your library "click". One issue I have is that Planemo tests run a script using your CliRunner class, but this script takes a long time and, since stdout is hidden, no feedback is given to the user until the script terminates and Planemo tests finally print the output.
So I've decided to modify your library in order to be able to print continuously stdout and stderr while running. I've added a parameter called tee inside the invoke method, and I set it to false by default. When set to true, a class called MultOutput will be instantiated instead of StringIO, that will take for parameters the StringIO instance and also stdout (or stderr). Each output will then be printed into StringIO as well as into stdout (or stderr).

Don't hesitate to contact me if you have any question.

Regards,
Pierrick

@pkrog
Copy link
Author

pkrog commented Nov 19, 2015

My modification is only valid for Python 2 for the moment. I'm currently working on making it available for Python 3 too.

@blueyed
Copy link
Contributor

blueyed commented Mar 27, 2018

Interesting, related: #951.

@pkrog
Copy link
Author

pkrog commented Jul 18, 2019

Discarded

@pkrog pkrog closed this Jul 18, 2019
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants