gilt 1.1.0

Fast, beautiful terminal formatting for Rust — styles, tables, trees, syntax highlighting, progress bars, markdown.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Status spinner demo. Run: `cargo run --example status`

use gilt::status::Status;
use std::{thread, time::Duration};

fn main() {
    let mut status = Status::run("Getting ready...");
    for n in 1..=10 {
        status.set(&format!("task {n}"));
        thread::sleep(Duration::from_secs(1));
        eprintln!("  task {n} complete");
    }
}