blazer 0.1.2

A blazing fast, feature-rich library for styling and enhancing CLI output in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use blazer::table::{Alignment, Borders, Table};

fn main() {
    let mut table = Table::new(vec!["Task", "Status", "Duration"])
        .with_borders(Borders::EMPTY)
        .with_alignment(Alignment::Center);
    table.add_row(vec!["build", "ok", "4.2s"]);
    table.add_row(vec!["test", "failed", "12.9s"]);
    table.add_row(vec!["lint", "ok", "1.1s"]);


    table.print();
}