pub mod components;
pub mod envelope;
use anyhow::Result;
use clap::{Args, Subcommand};
#[derive(Debug, Args)]
#[group(skip)]
pub struct CommandArgs {
#[command(subcommand)]
command: AddCommands,
}
#[derive(Debug, Subcommand)]
enum AddCommands {
Envelope(envelope::CommandArgs),
Components(components::CommandArgs),
}
impl crate::Exec for CommandArgs {
fn exec(&self) -> Result<String> {
match &self.command {
AddCommands::Envelope(args) => args.exec(),
AddCommands::Components(args) => args.exec(),
}
}
}