hermes_cli/commands/connection/
mod.rs

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