hermes_cli/commands/channel/
mod.rs

1pub mod create;
2pub use create::ChannelCreate;
3use hermes_cli_framework::command::CommandRunner;
4use hermes_cli_framework::output::Output;
5
6use crate::contexts::app::HermesApp;
7use crate::Result;
8
9#[derive(Debug, clap::Subcommand)]
10pub enum ChannelCommands {
11    /// Create a new channel
12    Create(ChannelCreate),
13}
14
15impl CommandRunner<HermesApp> for ChannelCommands {
16    async fn run(&self, app: &HermesApp) -> Result<Output> {
17        match self {
18            Self::Create(cmd) => cmd.run(app).await,
19        }
20    }
21}