use color_eyre::Report;
pub mod cli;
pub mod errors;
pub mod opt;
pub mod specs;
pub mod util;
use crate::opt::Command;
pub async fn run(cmd: &Command) -> Result<(), Report> {
match &cmd {
Command::Secret(sec_cmd) => {
cli::sec::process_sec_command(sec_cmd).await?;
}
Command::Parameter(par_cmd) => {
cli::par::process_par_command(par_cmd).await?;
}
}
Ok(())
}