chore: chall, chall-config

This commit is contained in:
2022-03-27 13:00:51 +08:00
parent d36aca00a0
commit c9b9607eab
2 changed files with 9 additions and 10 deletions

View File

@@ -11,10 +11,10 @@ impl Command for CommandImpl {
fn name(&self) -> &str { "chall-config" }
fn subcommand<'a>(&self) -> App<'a, 'a> {
SubCommand::with_name(self.name()).about("Yubikey challenge-response hmac config")
SubCommand::with_name(self.name()).about("YubiKey challenge-response HMAC config")
.arg(Arg::with_name("secret").short("s").long("secret").takes_value(true).help("Secret"))
.arg(Arg::with_name("secret-hex").short("x").long("secret-hex").takes_value(true).help("Secret HEX"))
.arg(Arg::with_name("yes-config-chall").long("yes-config-chall").help("Config chall key"))
.arg(Arg::with_name("yes-config-chall").long("yes-config-chall").help("Config challenge-response key"))
}
fn run(&self, _arg_matches: &ArgMatches, sub_arg_matches: &ArgMatches) -> CommandError {
@@ -55,7 +55,7 @@ impl Command for CommandImpl {
success!("Device configured");
}
} else {
warning!("Yubikey not found");
warning!("YubiKey not found");
}
Ok(None)