mod download;
mod list;
pub use download::*;
pub use list::*;
use crate::CommandContext;
use clap::Subcommand;
use mithril_client::MithrilResult;
#[derive(Subcommand, Debug, Clone)]
pub enum MithrilStakeDistributionCommands {
#[clap(arg_required_else_help = false)]
List(MithrilStakeDistributionListCommand),
#[clap(arg_required_else_help = false)]
Download(MithrilStakeDistributionDownloadCommand),
}
impl MithrilStakeDistributionCommands {
pub async fn execute(&self, config_builder: CommandContext) -> MithrilResult<()> {
match self {
Self::List(cmd) => cmd.execute(config_builder).await,
Self::Download(cmd) => cmd.execute(config_builder).await,
}
}
}