1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
mod commands; #[cfg(test)] mod tests; use anyhow::Result; use clap::Parser; use commands::{Cli, handle_command}; fn main() -> Result<()> { let cli = Cli::parse(); if let Err(e) = handle_command(cli) { eprintln!("Error: {}", e); std::process::exit(1); } Ok(()) }