1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
pub mod simulate; use clap::Subcommand; /// Commands for working with transactions #[derive(Subcommand)] pub enum Cmd { Simulate(simulate::Args), } pub fn exec(cmd: Cmd) -> miette::Result<()> { match cmd { Cmd::Simulate(args) => simulate::exec(args), } }