Skip to content
This repository has been archived by the owner on Jun 8, 2022. It is now read-only.

Commit

Permalink
Command nesting change: distrust is now a subcommand of id.
Browse files Browse the repository at this point in the history
  • Loading branch information
ffranr committed Sep 24, 2019
1 parent a6d7c06 commit 97081a4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ fn run_command(command: opts::Command) -> Result<CommandExitStatus> {
opts::Command::Id(opts::Id::Trust(args)) => {
create_trust_proof(args.pub_ids, Trust, &args.common_proof_create)?;
}
opts::Command::Distrust(args) => {
opts::Command::Id(opts::Id::Distrust(args)) => {
create_trust_proof(args.pub_ids, Distrust, &args.common_proof_create)?;
}
opts::Command::Update(_) => {
Expand Down
8 changes: 4 additions & 4 deletions src/opts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,10 @@ pub enum Id {
/// Trust an Id
#[structopt(name = "trust")]
Trust(Trust),

/// Distrust an Id
#[structopt(name = "distrust")]
Distrust(Trust),
}

#[derive(Debug, StructOpt, Clone)]
Expand Down Expand Up @@ -409,10 +413,6 @@ pub enum Command {
#[structopt(name = "query")]
Query(Query),

/// Distrust an Id
#[structopt(name = "distrust")]
Distrust(Trust),

/// Fetch proofs from external sources
#[structopt(name = "fetch")]
Fetch(Fetch),
Expand Down

0 comments on commit 97081a4

Please sign in to comment.