use clap::{Parser, Subcommand};
use clap_complete::Shell;
#[derive(Parser)]
#[command(name = "jgl", version, about = "Multi-repo manager for jujutsu (jj)")]
pub struct Cli {
#[command(subcommand)]
pub command: Command,
}
#[derive(Subcommand)]
pub enum Command {
Add {
path: String,
},
Completions { shell: Shell },
Fetch {
#[arg(short, long)]
verbose: bool,
#[arg(long, overrides_with = "no_rebase")]
rebase: bool,
#[arg(long, overrides_with = "rebase")]
no_rebase: bool,
#[arg(long, overrides_with = "no_with_conflicts")]
with_conflicts: bool,
#[arg(long, overrides_with = "with_conflicts")]
without_conflicts: bool,
#[arg(long)]
idle_timeout: Option<u64>,
},
}