minimal/minimal.rs
1use std::time::Duration;
2
3use cli_status_board::{SBState, SBStateConfig, Status};
4
5fn main() {
6 let state = SBState::new(SBStateConfig {
7 silent: false,
8 ..Default::default()
9 });
10
11 // When this handle drops the task completes
12 let _handle = state.add_task(format!("Some super basic task"), Status::Started);
13
14 std::thread::sleep(Duration::from_secs(10));
15}