pub mod assertion;
pub mod r#type;
use anyhow::Result;
use clap::{Args, Subcommand};
#[derive(Debug, Args)]
#[group(skip)]
pub struct CommandArgs {
#[command(subcommand)]
command: SubjectCommands,
}
#[derive(Debug, Subcommand)]
enum SubjectCommands {
Type(r#type::CommandArgs),
Assertion(assertion::CommandArgs),
}
impl crate::Exec for CommandArgs {
fn exec(&self) -> Result<String> {
match &self.command {
SubjectCommands::Type(args) => args.exec(),
SubjectCommands::Assertion(args) => args.exec(),
}
}
}