hermes_cli/commands/clear/
mod.rs

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