Skip to content

Commit

Permalink
Remove Cosmos-specific query channel end CLI implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
ljoss17 committed Dec 24, 2024
1 parent c9d1cfd commit b4efe78
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 100 deletions.
96 changes: 0 additions & 96 deletions crates/cli/cli/src/commands/query/channel/end.rs

This file was deleted.

8 changes: 4 additions & 4 deletions crates/cli/cli/src/commands/query/channel/mod.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
mod client;
mod end;
mod ends;

pub use client::QueryChannelClient;
pub use end::QueryChannelEnd;
pub use ends::QueryChannelEnds;
use hermes_cli_components::impls::commands::queries::channel_end::QueryChannelEndArgs;
use hermes_cli_components::traits::command::CanRunCommand;
use hermes_cli_framework::command::CommandRunner;
use hermes_cli_framework::output::Output;

Expand All @@ -13,15 +13,15 @@ use crate::Result;

#[derive(Debug, clap::Subcommand)]
pub enum QueryChannel {
End(QueryChannelEnd),
End(QueryChannelEndArgs),
Ends(QueryChannelEnds),
Client(QueryChannelClient),
}

impl QueryChannel {
pub async fn run(&self, app: &HermesApp) -> Result<Output> {
match self {
Self::End(cmd) => cmd.run(app).await,
Self::End(cmd) => app.run_command(cmd).await,
Self::Ends(cmd) => cmd.run(app).await,
Self::Client(cmd) => cmd.run(app).await,
}
Expand Down

0 comments on commit b4efe78

Please sign in to comment.