mod adversary;
mod all;
mod tx_only;
use crate::mjolnir_lib::MjolnirError;
pub use adversary::Adversary;
pub use all::AllFragments;
use clap::Parser;
pub use tx_only::TxOnly;
#[derive(Parser, Debug)]
pub enum Standard {
TxOnly(tx_only::TxOnly),
All(all::AllFragments),
#[clap(subcommand)]
Adversary(adversary::Adversary),
}
impl Standard {
pub fn exec(&self) -> Result<(), MjolnirError> {
match self {
Standard::TxOnly(tx_only_command) => tx_only_command.exec(),
Standard::All(all_command) => all_command.exec(),
Standard::Adversary(adversary) => adversary.exec(),
}
}
}