1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
mod cli; use clap::Parser; use cli::{Cli, Commands}; use std::process; fn main() { let cli = Cli::parse(); match cli.command { Commands::Setupx(args) => { if let Err(e) = cli::run_setupx(args) { eprintln!("❌ Error: {}", e); process::exit(1); } } } }