-
Notifications
You must be signed in to change notification settings - Fork 5
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
Use indicatif for progress bars #8
base: refactor
Are you sure you want to change the base?
Conversation
I'm not 100% sure I want to use |
I think the flickering is an artifact of asciinema tbh - it looks smooth on my screen (TM). Might be an idea to include both UIs then, and hide them behind feature flags? |
Ah okay, I was wondering if it was due to asciinema. Including them both behind feature flags is fine with me as long as it's clean. BTW this should also be using |
also add rustfmt.toml
6020b41
to
66067ff
Compare
Like that? |
Keep the old pbr UI behind a feature flag.
src/main.rs
Outdated
downloader.download::<rget::ui::multibar::MultibarUi, _>(input, matches.value_of("OUTPUT")) | ||
|
||
if let Err(f) = downloader | ||
.download::<rget::ui::multibar_indicatif::MultibarUi, _>(input, matches.value_of("OUTPUT")) |
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.
This should pick the progress bar setup based on available features rather than being hard-coded to indicatif
.
builds on the
refactor
branch.indicatif has some nicer, stylable, progress bars: