use clap::{Parser, ValueEnum};
use std::path::PathBuf;
use crate::RootArgs;
#[derive(Debug, Clone, Parser)]
pub(crate) struct PruneArgs {
#[command(flatten)]
pub(super) root: RootArgs,
#[arg(long)]
pub(super) config: Option<PathBuf>,
#[arg(long)]
pub(super) stale: bool,
#[arg(long, conflicts_with = "write")]
pub(super) dry_run: bool,
#[arg(long, conflicts_with = "dry_run")]
pub(super) write: bool,
#[arg(long)]
pub(super) include_untracked: bool,
#[arg(long, value_enum, default_value_t = PruneFormat::Human)]
pub(super) format: PruneFormat,
#[arg(long)]
pub(super) output: Option<PathBuf>,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, ValueEnum)]
pub(super) enum PruneFormat {
Human,
Json,
}