Skip to content
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

Add colored progress bar that shows progress of job's tasks #60

Merged
merged 1 commit into from Jun 17, 2021

Conversation

Kobzol
Copy link
Collaborator

@Kobzol Kobzol commented Jun 17, 2021

Showcase (using watch --color):
progress-bar

I looked at existing progress bar libraries and I haven't found any that would allow me to output the progress bar to a string in a simple way. And for this we probably don't need a special dependency anyway. I included colored to color the bar though, maybe we can use termcolor, which is already used by cli_table.

Closes: #49

@Kobzol Kobzol requested a review from spirali June 17, 2021 11:34
src/client/job.rs Show resolved Hide resolved
src/client/job.rs Show resolved Hide resolved
src/bin/hq.rs Show resolved Hide resolved
@spirali spirali self-requested a review June 17, 2021 15:56
@Kobzol Kobzol merged commit 65da1c4 into main Jun 17, 2021
@Kobzol Kobzol deleted the progress-bar branch June 17, 2021 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Progresbar
2 participants