clytia 0.2.1

A crate to make writing CLIs a bit nicer, a set of functions for common components
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use clytia::{Clytia, Result};

fn main() -> Result<(), Box<dyn std::error::Error>> {
    let mut cli = Clytia::default();

    cli.static_background_spinner::<_, _, _, &str>("A delay for 10 seconds", || {
        std::thread::sleep(std::time::Duration::from_secs(10));
        Ok(())
    })??;

    Ok(())
}