use clap::Parser;
#[derive(Parser)]
#[command(name = "fledge", version, about = "Get your projects ready to fly.")]
struct Cli {
#[command(subcommand)]
command: Commands,
}
#[derive(clap::Subcommand)]
enum Commands {
Init {
name: String,
#[arg(short, long)]
template: Option<String>,
},
List,
}
fn main() {
let cli = Cli::parse();
match cli.command {
Commands::Init { name, template } => {
println!("Scaffolding project: {name}");
if let Some(t) = template {
println!("Using template: {t}");
}
}
Commands::List => {
println!("Available templates:");
println!(" (none yet — add templates to get started)");
}
}
}