mithril_client_cli/commands/mithril_stake_distribution/
mod.rs1mod download;
3mod list;
4
5pub use download::*;
6pub use list::*;
7
8use crate::CommandContext;
9use clap::Subcommand;
10use mithril_client::MithrilResult;
11
12#[derive(Subcommand, Debug, Clone)]
14pub enum MithrilStakeDistributionCommands {
15 #[clap(arg_required_else_help = false)]
17 List(MithrilStakeDistributionListCommand),
18
19 #[clap(arg_required_else_help = false)]
21 Download(MithrilStakeDistributionDownloadCommand),
22}
23
24impl MithrilStakeDistributionCommands {
25 pub async fn execute(&self, config_builder: CommandContext) -> MithrilResult<()> {
27 match self {
28 Self::List(cmd) => cmd.execute(config_builder).await,
29 Self::Download(cmd) => cmd.execute(config_builder).await,
30 }
31 }
32}