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