use std::path::PathBuf;
use clap::Args;
use treeboot_core::RunOptions;
#[derive(Debug, Args, Clone, Default)]
pub(crate) struct RunArgs {
#[arg(short, long)]
root: Option<PathBuf>,
#[arg(short, long)]
config: Option<PathBuf>,
#[arg(long)]
no_init_script: bool,
#[arg(short = 'S', long)]
strict: bool,
#[arg(short, long)]
force: bool,
#[arg(short = 'n', long)]
dry_run: bool,
#[arg(long)]
skip_commands: bool,
}
impl From<RunArgs> for RunOptions {
fn from(args: RunArgs) -> Self {
Self {
cwd: None,
root: args.root,
config: args.config,
no_init_script: args.no_init_script,
strict: args.strict,
force: args.force,
dry_run: args.dry_run,
skip_commands: args.skip_commands,
}
}
}