-
Notifications
You must be signed in to change notification settings - Fork 69
Display a progress bar in verbose mode #209
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some comments regarding the code, but the most important bit is that I think we should include the number of patches and errors in the progress bar (as opposed to "jobs") — if they can be colorized, that would be even cooler :)
Display patches and failed steps instead of jobs Be more explicit about when we log to the repo loggers Move more display logic into the logger Don't hardcode number of spaces when clearing progress
progress now keeps track of progress state. progressWriter is a writer that uses current progress to append a progress bar.
|
@mrnugget PTAL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 I like this version much more.
I left some comments with some ideas and suggestions:
- I don't think we need to have a "triangle dependency" between
progress/progressWriterandactionLogger.actionLoggerdoesn't need to know about both, I think. Maybe we can useio.Writerto make that clearer. See comment. - I don't like the parentheses in the formatting of the progress. Suggested some other formatting for the message.
Co-authored-by: Thorsten Ball <mrnugget@gmail.com>
Co-authored-by: Thorsten Ball <mrnugget@gmail.com>
* Display a progress bar when running in verbose mode * Cleanups after code review Display patches and failed steps instead of jobs Be more explicit about when we log to the repo loggers Move more display logic into the logger Don't hardcode number of spaces when clearing progress * Split progress and writer progress now keeps track of progress state. progressWriter is a writer that uses current progress to append a progress bar. * Update cmd/src/actions_exec_logger.go Co-authored-by: Thorsten Ball <mrnugget@gmail.com> * Update cmd/src/actions_exec_logger.go Co-authored-by: Thorsten Ball <mrnugget@gmail.com> * Move progress methods * Tweak progress bar labels * Remove dependency between actionLogger and progressWriter Co-authored-by: Thorsten Ball <mrnugget@gmail.com>

Closes: #190