From ebbe521529a8c07b8c6ae10a346ac2d3d52ed496 Mon Sep 17 00:00:00 2001 From: Leigh McCulloch <351529+leighmcculloch@users.noreply.github.com> Date: Thu, 2 May 2024 11:44:10 +1000 Subject: [PATCH] Remove lab xdr command --- cmd/soroban-cli/src/commands/lab/mod.rs | 23 ----------------------- cmd/soroban-cli/src/commands/mod.rs | 4 ---- 2 files changed, 27 deletions(-) delete mode 100644 cmd/soroban-cli/src/commands/lab/mod.rs diff --git a/cmd/soroban-cli/src/commands/lab/mod.rs b/cmd/soroban-cli/src/commands/lab/mod.rs deleted file mode 100644 index d183217fc..000000000 --- a/cmd/soroban-cli/src/commands/lab/mod.rs +++ /dev/null @@ -1,23 +0,0 @@ -use clap::Subcommand; -use stellar_xdr::cli as xdr; - -#[derive(Debug, Subcommand)] -pub enum Cmd { - /// Decode xdr - Xdr(xdr::Root), -} - -#[derive(thiserror::Error, Debug)] -pub enum Error { - #[error(transparent)] - Xdr(#[from] xdr::Error), -} - -impl Cmd { - pub fn run(&self) -> Result<(), Error> { - match &self { - Cmd::Xdr(xdr) => xdr.run()?, - } - Ok(()) - } -} diff --git a/cmd/soroban-cli/src/commands/mod.rs b/cmd/soroban-cli/src/commands/mod.rs index 4aaa3e645..8b8e34a3e 100644 --- a/cmd/soroban-cli/src/commands/mod.rs +++ b/cmd/soroban-cli/src/commands/mod.rs @@ -95,7 +95,6 @@ impl Root { Cmd::Completion(completion) => completion.run(), Cmd::Contract(contract) => contract.run(&self.global_args).await?, Cmd::Events(events) => events.run().await?, - Cmd::Lab(lab) => lab.run()?, Cmd::Xdr(xdr) => xdr.run()?, Cmd::Network(network) => network.run().await?, Cmd::Version(version) => version.run(), @@ -126,9 +125,6 @@ pub enum Cmd { /// Create and manage identities including keys and addresses #[command(subcommand)] Keys(keys::Cmd), - /// Experiment with early features and expert tools - #[command(subcommand)] - Lab(lab::Cmd), /// Decode and encode XDR Xdr(stellar_xdr::cli::Root), /// Start and configure networks