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: trust 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 39414e2 commit a6d7c06
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ fn run_command(command: opts::Command) -> Result<CommandExitStatus> {
let local = Local::auto_open()?;
local.show_own_ids()?;
}
opts::Command::Trust(args) => {
opts::Command::Id(opts::Id::Trust(args)) => {
create_trust_proof(args.pub_ids, Trust, &args.common_proof_create)?;
}
opts::Command::Distrust(args) => {
Expand Down
10 changes: 5 additions & 5 deletions src/opts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,10 @@ pub enum Id {
/// Edit README.md of the current ID
#[structopt(name = "edit")]
Edit(Edit),

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

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

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

/// Distrust an Id
#[structopt(name = "distrust")]
Distrust(Trust),
Expand All @@ -421,7 +421,7 @@ pub enum Command {
#[structopt(name = "publish", alias = "push")]
Publish,

/// Import proofs, ...
/// Import proofs
#[structopt(name = "import")]
Import(Import),

Expand Down

0 comments on commit a6d7c06

Please sign in to comment.