readd custom style to pb

This commit is contained in:
Troy 2025-01-14 17:04:14 +00:00
parent c0ecec680f
commit cb4d395997
Signed by: troy
GPG key ID: DFC06C02ED3B4711

View file

@ -1,3 +1,4 @@
use indicatif::ProgressStyle;
use std::error::Error;
use terminal_link::Link;
use tokio;
@ -19,6 +20,7 @@ async fn main() -> Result<(), Box<dyn Error>> {
.try_into()
.expect("Could not convert list length"),
);
pb.set_style(ProgressStyle::with_template("{wide_bar} {percent} {msg}").unwrap());
let all_items = data::run_tasks(values.to_vec(), count, skip_amount, &pb).await;
pb.finish_and_clear();