use clap::Parser;
use cleanpy::{
cli::{Cli, Commands},
install::install_command,
mcp::run_mcp_server,
};
fn main() {
let cli = Cli::parse();
let result = match cli.command {
Commands::Mcp => run_mcp_server(),
Commands::Install { scope } => install_command(scope),
};
if let Err(e) = result {
eprintln!("错误: {}", e);
std::process::exit(1);
}
}