Crates.io | list_display |
lib.rs | list_display |
version | 0.1.1 |
source | src |
created_at | 2024-03-27 07:31:19.285329 |
updated_at | 2024-03-28 01:33:42.521409 |
description | display list |
homepage | |
repository | |
max_upload_size | |
id | 1187597 |
size | 14,324 |
use list_display::*;
fn main() {
let mut title = VecRowBox::new();
let mut a1 = VecRowBox::new();
title.push("Command".bold().blue());
title.push("Summary".bold().blue());
a1.push("install".purple());
a1.push("help".purple());
let mut box_list = VecBoxList::new();
box_list.push(title);
box_list.push(a1);
box_list.build_rowlist_to_columslist().direction(vec![1], Right).print_list();
}