1 2 3 4 5 6 7 8 9 10 11 12 13
#[macro_export] macro_rules! handle_subcommands { ($super:ident) => { #[async_trait::async_trait] impl crate::cli::CliSubcommand for $super { async fn run(self: Box<Self>) -> anyhow::Result<()> { self.0.to_object().run().await?; Ok(()) } } }; }