use clap::{Args, Parser, Subcommand};
use std::path::PathBuf;
#[derive(Parser, Debug)]
#[command(version, about, long_about = None)]
pub struct Cli {
#[command(subcommand)]
pub r#type: SmartPatcherExecType,
}
#[derive(Subcommand, Debug)]
pub enum SmartPatcherExecType {
Apply(PatchParams),
Test(PatchParams),
#[cfg(feature = "generate-examples")]
GenerateExamples,
}
#[derive(Args, Debug)]
pub struct PatchParams {
pub patch: PathBuf,
pub work_at: PathBuf,
}