mzrs-cli 0.1.21

CLI tool for scaffolding mzrs bot projects
use clap::{Parser, Subcommand};

mod commands;

/// CLI tool for scaffolding mzrs bot projects.
#[derive(Parser)]
#[command(name = "mzrs", about = "CLI tool for scaffolding mzrs bot projects")]
struct Cli {
    #[command(subcommand)]
    command: Commands,
}

#[derive(Subcommand)]
enum Commands {
    /// Create a new bot project
    New {
        /// Project name
        name: String,
        /// Template to use (minimal, command, full)
        #[arg(short, long, default_value = "minimal")]
        template: String,
    },
}

fn main() {
    let cli = Cli::parse();
    match cli.command {
        Commands::New { name, template } => commands::new::run(&name, &template),
    }
}