mithril_client_cli/commands/tools/
mod.rs1mod snapshot_converter;
7
8pub use snapshot_converter::*;
9
10use clap::Subcommand;
11use mithril_client::MithrilResult;
12
13#[derive(Subcommand, Debug, Clone)]
15#[command(about = "[unstable] Tools commands")]
16pub enum ToolsCommands {
17 #[clap(subcommand, name = "utxo-hd")]
19 UTxOHD(UTxOHDCommands),
20}
21
22impl ToolsCommands {
23 pub async fn execute(&self) -> MithrilResult<()> {
25 match self {
26 Self::UTxOHD(cmd) => cmd.execute().await,
27 }
28 }
29}
30
31#[derive(Subcommand, Debug, Clone)]
33pub enum UTxOHDCommands {
34 #[clap(arg_required_else_help = false)]
36 SnapshotConverter(SnapshotConverterCommand),
37}
38
39impl UTxOHDCommands {
40 pub async fn execute(&self) -> MithrilResult<()> {
42 match self {
43 Self::SnapshotConverter(cmd) => cmd.execute().await,
44 }
45 }
46}