-
Notifications
You must be signed in to change notification settings - Fork 305
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disable globally progress bar #674
Comments
Any chance to achieve this? |
I am in favor of improving / disabling the progress bar as desired. When using the logger to output, Robo automatically hides/shows the progress bar around the output, so the stale progress bar image is not left behind. Other code that also outputs, e.g. taskExec et. al., also need to do this operation. It would also be valuable to have an option to simply disable the progress bar for whatever reason. The workaround for doing this is to set the progress display delay to a very large value. For example:
Or do this permanently in your robo.yml:
If Robo implemented EnvConfig (easy -- it just happens not to), then it would also be possible to set an environment variable:
That at present does not do anything, though. A pull request to add a separate disable option, or implement EnvConfig, or improve the output of the progress bar would be welcome. I haven't had time to get to these things myself as of yet. |
Robo 3.0 In my case, even using progress delay option, I'm still having progress output using
|
So, it seems that the progress bar is displayed even for systems that does not support TTY. Here, I'm using alpine linux for an github actions build:
The progress is messing with the logs. @greg-1-anderson I would love to create a PR for this. What is your thought about it, should we create an option to disable the progress globally, or try to determine if the system supports progress or not (not sure how to do this, TBH). Thanks |
Yeah, auto-disabling the progress bar when tty mode is not available is a good idea. You can detect tty mode with posix_isatty. This function is not available on some systems (e.g. Windows), so you'll need to guard it with a The workaround is to just define |
Is there a way to globally disable the progress bar?
Example screens with ugly progress bar:
Example script with taskParallelExec, but its jus an example task
I would like to disable progress bar at all, because its not readable to me in the way it is implemented.
The text was updated successfully, but these errors were encountered: