Initial vendor packages
Signed-off-by: Valentin Popov <valentin@popov.link>
This commit is contained in:
11
vendor/indicatif/examples/message.rs
vendored
Normal file
11
vendor/indicatif/examples/message.rs
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
use std::{thread, time::Duration};
|
||||
|
||||
use indicatif::ProgressBar;
|
||||
|
||||
fn main() {
|
||||
let pb = ProgressBar::new(100).with_message("Frobbing the widget");
|
||||
for _ in 0..100 {
|
||||
thread::sleep(Duration::from_millis(30));
|
||||
pb.inc(1);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user