Skip to content

Commit

Permalink
Review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
freak12techno committed Jul 18, 2021
1 parent 6fb7401 commit 8c76e9e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/commands/yubihsm/keys/import.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ pub struct ImportCommand {
#[options(short = "w", long = "wrapkey", help = "wrap key to decrypt with")]
pub wrap_key_id: Option<u16>,

/// Type of key to import (either `wrap`, `priv_validator`, or `base64`, default `wrap`)
#[options(short = "t", help = "type of key to import (wrap, base64 or priv_validator)")]
/// Type of key to import (either `wrap`, `json`, or `base64`, default `wrap`)
#[options(short = "t", help = "type of key to import (wrap, base64 or json)")]
pub key_type: Option<String>,

/// Label for imported key (only applicable to `priv_validator` keys)
Expand All @@ -47,7 +47,7 @@ impl Runnable for ImportCommand {

match self.key_type.as_deref() {
Some("wrap") => self.import_wrapped(&contents),
Some("priv_validator") => self.import_priv_validator_json(&contents),
Some("json") => self.import_priv_validator_json(&contents),
Some("base64") => self.import_base64(&contents),
Some(other) => {
status_err!("invalid key type: {}", other);
Expand Down

0 comments on commit 8c76e9e

Please sign in to comment.