blob: 1b327d00ba28dd89a628c0373284dc3d9ce80e2b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
use cli_log::*;
fn main() {
init_cli_log!();
match broot::cli::run() {
Ok(Some(launchable)) => {
debug!("launching {:#?}", launchable);
if let Err(e) = launchable.execute(None) {
warn!("Failed to launch {:?}", &launchable);
warn!("Error: {:?}", e);
eprintln!("{}", e);
}
}
Ok(None) => {}
Err(e) => {
// this usually happens when the passed path isn't of a directory
warn!("Error: {}", e);
eprintln!("{}", e);
}
};
log_mem(Level::Info);
info!("bye");
}
|