mod models;
mod output;
use clap::Command;
pub(super) use models::models;
pub(super) use output::typescript;
fn flag(name: &'static str, help: &'static str) -> clap::Arg {
clap::Arg::new(name)
.long(name)
.action(clap::ArgAction::SetTrue)
.help(help)
}
fn value(name: &'static str, help: &'static str) -> clap::Arg {
clap::Arg::new(name).long(name).help(help)
}
fn with(command: Command, args: Vec<clap::Arg>) -> Command {
args.into_iter().fold(command, Command::arg)
}