Skip to content

Commit

Permalink
Check all subcommands / option flags of litentry-worker and litentry-…
Browse files Browse the repository at this point in the history
…cli (#2496)

* check all subcommands / option flags of litentry-worker and litentry-cli

* remove nondirect link-identity command

* cleanup

* remove nonexistant arguments
  • Loading branch information
Traf333 committed Feb 20, 2024
1 parent bafacab commit 8210dd1
Show file tree
Hide file tree
Showing 5 changed files with 139 additions and 222 deletions.
80 changes: 0 additions & 80 deletions tee-worker/cli/src/base_cli/commands/litentry/link_identity.rs

This file was deleted.

4 changes: 0 additions & 4 deletions tee-worker/cli/src/base_cli/commands/litentry/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,3 @@
// along with Litentry. If not, see <https://www.gnu.org/licenses/>.

pub mod id_graph_hash;
pub mod link_identity;

// TODO: maybe move it to use itp_node_api::api_client
pub const IMP: &str = "IdentityManagement";
11 changes: 2 additions & 9 deletions tee-worker/cli/src/base_cli/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,8 @@

use crate::{
base_cli::commands::{
balance::BalanceCommand,
faucet::FaucetCommand,
listen::ListenCommand,
litentry::{id_graph_hash::IDGraphHashCommand, link_identity::LinkIdentityCommand},
register_tcb_info::RegisterTcbInfoCommand,
balance::BalanceCommand, faucet::FaucetCommand, listen::ListenCommand,
litentry::id_graph_hash::IDGraphHashCommand, register_tcb_info::RegisterTcbInfoCommand,
transfer::TransferCommand,
},
command_utils::*,
Expand Down Expand Up @@ -81,9 +78,6 @@ pub enum BaseCommand {
/// we want to keep our changes isolated
PrintSgxMetadataRaw,

/// create idenity graph
LinkIdentity(LinkIdentityCommand),

/// get the IDGraph hash of the given identity
IDGraphHash(IDGraphHashCommand),
}
Expand All @@ -103,7 +97,6 @@ impl BaseCommand {
BaseCommand::RegisterTcbInfo(cmd) => cmd.run(cli),
// Litentry's commands below
BaseCommand::PrintSgxMetadataRaw => print_sgx_metadata_raw(cli),
BaseCommand::LinkIdentity(cmd) => cmd.run(cli),
BaseCommand::IDGraphHash(cmd) => cmd.run(cli),
}
}
Expand Down

0 comments on commit 8210dd1

Please sign in to comment.