feat: new

This commit is contained in:
2020-11-01 14:05:31 +08:00
parent 990f2dac41
commit dfcdd02d27
4 changed files with 344 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
use comfy_table::Table;
fn main() {
let mut table = Table::new();
table
.set_header(vec!["Header1", "Header2", "Header3"])
.add_row(vec![
"This is a text",
"This is another text",
"This is the third text",
])
.add_row(vec![
"This is another text",
"Now\nadd some\nmulti line stuff",
"This is awesome",
]);
println!("{}", table);
}