()
| 3 | use cli_table::{Cell, Style, Table, format::Justify, print_stdout}; |
| 4 | |
| 5 | fn main() -> Result<()> { |
| 6 | let table = vec![ |
| 7 | vec!["Tom".cell(), 10.cell().justify(Justify::Right)], |
| 8 | vec!["Jerry".cell(), 15.cell().justify(Justify::Right)], |
| 9 | vec!["Scooby Doo".cell(), 20.cell().justify(Justify::Right)], |
| 10 | ] |
| 11 | .table() |
| 12 | .title(vec![ |
| 13 | "Name".cell().bold(true), |
| 14 | "Age (in years)".cell().bold(true), |
| 15 | ]) |
| 16 | .bold(true); |
| 17 | |
| 18 | print_stdout(table) |
| 19 | } |
nothing calls this directly
no test coverage detected