mod gen_completions;
mod gen_config;
use abscissa_core::{Command, Runnable};
use clap::{Parser, Subcommand};
use crate::commands::generate::{gen_completions::GenCompletionsCmd, gen_config::GenConfigCmd};
#[derive(Subcommand, Command, Debug, Runnable)]
pub enum GenerateSubCmd {
Config(GenConfigCmd),
Completions(GenCompletionsCmd),
}
#[derive(Command, Debug, Parser)]
pub struct GenerateCmd {
#[clap(subcommand)]
commands: GenerateSubCmd,
}
impl Runnable for GenerateCmd {
fn run(&self) {
self.commands.run();
}
}