cleanpy 0.1.3

Python 3.12+ 最佳实践知识库 - MCP 服务器
Documentation
// Main entry point for cleanpy binary

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);
    }
}