use std::process::ExitCode;
use clap::{Args, Subcommand};
pub mod boot;
pub mod validate;
#[derive(Args)]
pub struct ConfigArgs {
#[command(subcommand)]
pub command: ConfigCommands,
}
#[derive(Subcommand)]
pub enum ConfigCommands {
Validate(validate::ValidateArgs),
Boot(boot::BootArgs),
}
pub fn dispatch(args: ConfigArgs) -> ExitCode {
match args.command {
ConfigCommands::Validate(val_args) => validate::run(val_args),
ConfigCommands::Boot(boot_args) => boot::run(boot_args),
}
}