console-rs / indicatif

A command line progress reporting library for Rust
MIT License
4.45k stars 243 forks source link

‘percent_precise’ do not work #633

Open JHwarlock opened 9 months ago

JHwarlock commented 9 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 9 months ago

So you mean that the percent_precise precision cannot be modified?

JHwarlock commented 8 months ago

yes

djc commented 8 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 6 months ago

Thanks a lot