use crate::commands::*;
use clap::{ArgEnum, Parser};
const VERSION: &str = env!("CARGO_PKG_VERSION");
#[derive(Parser)]
#[clap(
version = VERSION,
author = "Qonfucius team <contact+kcfg@qonfucius.team>",
license = "MIT",
about = "Sometimes, you have to deal with many kubeconfig files. kcfg is here to help you !"
)]
pub struct KcfgApp {
#[clap(subcommand, arg_enum)]
pub command: Command,
}
#[derive(Debug, ArgEnum, Parser)]
pub enum Command {
Init(command_init::InitOptions),
Use(command_use::UseOptions),
Fork(command_fork::ForkOption),
Completions(command_completions::CompletionOptions),
}