Initial vendor packages
Signed-off-by: Valentin Popov <valentin@popov.link>
This commit is contained in:
12
vendor/indicatif/examples/slow.rs
vendored
Normal file
12
vendor/indicatif/examples/slow.rs
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
use indicatif::{ProgressBar, ProgressStyle};
|
||||
use std::time::Duration;
|
||||
|
||||
fn main() {
|
||||
let progress =
|
||||
ProgressBar::new(10).with_style(ProgressStyle::default_bar().progress_chars("🔐🔑🕓"));
|
||||
for _ in 0..10 {
|
||||
progress.inc(1);
|
||||
std::thread::sleep(Duration::from_secs(1));
|
||||
}
|
||||
progress.finish();
|
||||
}
|
Reference in New Issue
Block a user