hermes_cli/commands/query/connection/
mod.rs

1mod end;
2pub use end::QueryConnectionEnd;
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 QueryConnection {
11    /// Create a new channel
12    End(QueryConnectionEnd),
13}
14
15impl CommandRunner<HermesApp> for QueryConnection {
16    async fn run(&self, app: &HermesApp) -> Result<Output> {
17        match self {
18            Self::End(cmd) => cmd.run(app).await,
19        }
20    }
21}