use clap::{Parser, Subcommand};
#[derive(Parser)]
#[command(name = "matcha", version, about = "green-tea CLI")]
pub struct Cli {
#[command(subcommand)]
pub command: Command,
}
#[derive(Subcommand)]
pub enum Command {
New {
name: String,
#[arg(long)]
template_url: Option<String>,
#[arg(long, default_value = "node", value_parser = ["node", "deno", "bun"])]
runtime: String,
},
Run,
Create {
#[arg(value_parser = ["module", "controller", "step", "provider"])]
kind: String,
name: String,
#[arg(long)]
check: bool,
},
Add {
#[arg(value_parser = ["sse", "stream", "buffer"])]
capability: String,
},
}