A rust library to format the output of cli programs
![](https://camo.githubusercontent.com/e0ad666a0b6edf0eb27ba23ff618db2ca72cce6d5b650d763d5ee246980b057e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7265706f2d73697a652f6c6f656e61726439372f636c69666f726d3f267374796c653d666f722d7468652d626164676526636f6c6f723d463734433030)
let grid = Grid::new();
grid.push("Hello");
grid.push("World");
grid.push("!");
println!("{}", grid.to_string());
let mut table = Table::new();
table.header(vec!["first", "second", "third"]);
table.push(vec!["Hello", "World", "!"]);
table.push(vec!["How", "are", "you?"]):
table.push(vec!["Great", "weather", "right?"]);
println!("{}", table.to_string());
first second third
───────────────────────────
Hello World !
How are you?
Great weather right?
let tree = Tree::new();
tree.push("first", 0);
tree.push("second", 1);
tree.push("third", 1);
println!("{}", tree.to_string());
├─ first
│ ├─ second
│ └─ third