1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
mod cli; mod cmd; use cli::{Cli, Command}; fn main() { let app = Cli::new(); let code = match app.cmd.exec(app.config) { Ok(_) => 0, Err(e) => { eprintln!("{}", e.to_string()); 1 } }; std::process::exit(code) }