Skip to content

Commit

Permalink
Remove cosmos-specific implementation of client update CLI (#512)
Browse files Browse the repository at this point in the history
  • Loading branch information
ljoss17 authored Dec 24, 2024
1 parent 3e0c657 commit 9b3d92f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 101 deletions.
8 changes: 3 additions & 5 deletions crates/cli/cli/src/commands/client/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
use hermes_cli_components::impls::commands::client::update::UpdateClientArgs;
use hermes_cli_components::traits::command::CanRunCommand;
use hermes_cli_framework::command::CommandRunner;
use hermes_cli_framework::output::Output;
Expand All @@ -8,23 +9,20 @@ use crate::Result;

pub mod create;

mod update;
pub use update::ClientUpdate;

#[derive(Debug, clap::Subcommand)]
pub enum ClientCommands {
/// Create a new client
Create(CreateClientArgs),

/// Update a client
Update(ClientUpdate),
Update(UpdateClientArgs),
}

impl CommandRunner<HermesApp> for ClientCommands {
async fn run(&self, app: &HermesApp) -> Result<Output> {
match self {
Self::Create(cmd) => app.run_command(cmd).await,
Self::Update(cmd) => cmd.run(app).await,
Self::Update(cmd) => app.run_command(cmd).await,
}
}
}
96 changes: 0 additions & 96 deletions crates/cli/cli/src/commands/client/update.rs

This file was deleted.

0 comments on commit 9b3d92f

Please sign in to comment.