use clap::Parser; #[derive(Parser)] #[command(name = "worklane")] #[command(about = "A CLI tool for managing project status")] pub struct Cli { #[command(subcommand)] pub command: Command, } #[derive(clap::Subcommand)] pub enum Command { /// Initialize worklane in the current project Init, /// Add a new ticket to the backlog Add { /// Ticket title #[arg(short, long)] title: String, /// Ticket description #[arg(short, long)] description: Option, /// Acceptance criteria (comma-separated) #[arg(short, long)] acceptance: Vec, /// Implementation plan (comma-separated steps) #[arg(short, long)] plan: Vec, /// Tags (comma-separated) #[arg(short = 'g', long)] tags: Vec, /// Due date (YYYY-MM-DD) #[arg(long)] due: Option, /// Owner #[arg(short, long)] owner: Option, }, /// List tickets, optionally filtered by status Ls { /// Filter by status (backlog, committed, reviewing, done) status: Option, }, /// Show a ticket by UUID or title Show { /// Ticket UUID or title to search for id: String, }, }