spinoff/examples/simple.rs

9 lines
222 B
Rust
Raw Permalink Normal View History

2022-07-16 18:33:16 -05:00
use spinoff::{Spinner, Spinners};
use std::{thread::sleep, time::Duration};
2022-07-15 12:59:22 -05:00
fn main() {
2022-07-16 18:33:16 -05:00
let sp = Spinner::new(Spinners::Dots, "Loading...", None);
sleep(Duration::from_millis(8000));
2022-07-15 12:59:22 -05:00
sp.success("Success!");
}