use clap::Clap;
use super::completion::Shell;
#[derive(Clap, Debug, PartialEq)]
pub enum Commands {
Completion {
#[clap(subcommand)]
shell: Shell
}
}
impl Commands {
pub fn exec(&self) -> anyhow::Result<()> {
match self {
Commands::Completion { shell } => shell.generate_and_install(),
}
Ok(())
}
}