feat: rename comfy table
This commit is contained in:
20
__term/comfy_table/src/main.rs
Normal file
20
__term/comfy_table/src/main.rs
Normal 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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user