1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
use brocproc::{tree}; use broccli::errors::Error; fn main() -> Result<(), Error> { tree!( "Hello, World!", { "Hello, World 2!"; "Last One Here"; }, { "Hello, World 3!"; { "Nested Block 1" } { "Nested Block 2" } }, "Goodbye, World!" ); //let test = xprintln!("test {:?} {}" => Color::Crimson, vec => Color::Blue, "test2" => Color::White); /* let interface = Interface::new(); interface.clear()?; if let Ok((cols, rows)) = get_terminal_size() { let config = BoxConfig { x: 0, y: 0, width: cols, height: rows, border_style: LineStyle::Single, color: Color::Transparent, background: Color::Transparent, }; interface.draw_box(config)?; }*/ Ok(()) }