mithril_client_cli/commands/cardano_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)]
14#[command(about = "Cardano stake distribution management (alias: csd)")]
15pub enum CardanoStakeDistributionCommands {
16 #[clap(arg_required_else_help = false)]
18 List(CardanoStakeDistributionListCommand),
19
20 #[clap(arg_required_else_help = true)]
22 Download(CardanoStakeDistributionDownloadCommand),
23}
24
25impl CardanoStakeDistributionCommands {
26 pub async fn execute(&self, config_builder: CommandContext) -> MithrilResult<()> {
28 match self {
29 Self::List(cmd) => cmd.execute(config_builder).await,
30 Self::Download(cmd) => cmd.execute(config_builder).await,
31 }
32 }
33}