use clap::builder::TypedValueParser;
use clap::{Args, Subcommand, ValueHint};
use std::path::PathBuf;
#[derive(Args, Debug)]
pub(crate) struct ConfigArgs {
#[command(subcommand)]
pub(crate) action: ConfigAction,
}
#[derive(Subcommand, Debug)]
pub(crate) enum ConfigAction {
Init {
#[arg(long, short)]
force: bool,
},
Check {
#[arg(
short,
long,
env = "ARF_CONFIG",
value_hint = ValueHint::FilePath,
value_parser = clap::builder::OsStringValueParser::new().map(PathBuf::from)
)]
config: Option<PathBuf>,
},
}