use clap::Parser;
use clap::Subcommand;
#[derive(Parser, Debug)]
#[clap(version, about, long_about = None)]
pub struct CLI {
#[clap(short, long, default_value = "/etc/podmod.conf")]
pub config: String,
#[clap(subcommand)]
pub command: Command,
}
#[derive(Subcommand, Debug)]
pub enum Command {
Build {
#[clap(short, long)]
idempotent: bool,
#[clap(short, long)]
module: String,
#[clap(long)]
no_prune: bool,
},
Load {
#[clap(short, long)]
idempotent: bool,
#[clap(short, long)]
module: String,
},
Modules {},
Run {
#[clap(short, long)]
module: String,
command: Vec<String>,
},
Shell {
#[clap(short, long)]
module: String,
#[clap(default_value = "/bin/bash")]
shell: String,
},
Unload {
#[clap(short, long)]
idempotent: bool,
#[clap(short, long)]
module: String,
},
}