console-rs / indicatif

A command line progress reporting library for Rust
MIT License
4.21k stars 238 forks source link

‘percent_precise’ do not work #633

Open JHwarlock opened 4 months ago

JHwarlock commented 4 months ago

let style = ProgressStyle::with_template( "[{elapsed_precise:.6}] |{bar:40.cyan/blue}| {eta_precise:.1} {percent_precise}% {msg}" // {percent_precise:3.0} ) .unwrap() .progress_chars("#>-");

code changed to "percent_precise:3" or "percent_precise:.3", no percent data displayed in progress bar

djc commented 4 months ago

So you mean that the percent_precise precision cannot be modified?

JHwarlock commented 4 months ago

yes

djc commented 4 months ago

That just hasn't been implemented. I'm open to reviewing a PR for this but probably won't get to it myself.

JHwarlock commented 1 month ago

Thanks a lot