use clap::{Args, Parser, Subcommand};
#[derive(Parser, Debug)]
#[command(
name = "commit-wizard",
version,
author,
about = "🧙♂️ A lightweight conventional commits assistant."
)]
pub struct Cli {
#[command(flatten)]
pub global: GlobalOpts,
#[command(subcommand)]
pub command: Command,
}
#[derive(Args, Debug, Clone)]
pub struct GlobalOpts {
#[arg(long, global = true)]
pub dry_run: bool,
}
#[derive(Subcommand, Debug)]
pub enum Command {
Commit {
#[arg(long)]
allow_empty: bool,
},
}