use clap::{Parser, Subcommand};

#[derive(Parser, Debug)]
#[command(name = "antistatic")]
#[command(about = "The AI-native Rust web framework, designed for agent-assisted development.", long_about = None)]
#[command(version)]
pub struct Cli {
    #[command(subcommand)]
    pub command: Commands,
}

#[derive(Subcommand, Debug)]
pub enum Commands {
    /// Serve the site locally with live reload
    Serve {
        /// Interface to bind to
        #[arg(short, long, default_value = "127.0.0.1")]
        interface: String,

        /// Port to use
        #[arg(short, long, default_value = "2200")]
        port: u16,

        /// Open in browser
        #[arg(short, long)]
        open: bool,
    },
}
