From 5ad16984f21b2392a25bb3211c72a5c74c8104a4 Mon Sep 17 00:00:00 2001 From: Hatter Jiang Date: Wed, 13 Apr 2022 00:40:56 +0800 Subject: [PATCH] chore: new line --- src/cmd_u2fsign.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cmd_u2fsign.rs b/src/cmd_u2fsign.rs index b3aa4d7..7f783b0 100644 --- a/src/cmd_u2fsign.rs +++ b/src/cmd_u2fsign.rs @@ -21,6 +21,7 @@ pub struct CommandImpl; impl Command for CommandImpl { fn name(&self) -> &str { "u2f-sign" } + fn subcommand<'a>(&self) -> App<'a, 'a> { SubCommand::with_name(self.name()).about("FIDO U2F Sign subcommand") .arg(Arg::with_name("app-id").short("a").long("app-id").default_value("https://example.com").help("App id")) @@ -31,6 +32,7 @@ impl Command for CommandImpl { .arg(Arg::with_name("key-handle").short("k").long("key-handle").takes_value(true).multiple(true).help("Key handle")) .arg(Arg::with_name("json").long("json").help("JSON output")) } + fn run(&self, _arg_matches: &ArgMatches, sub_arg_matches: &ArgMatches) -> CommandError { let json_output = sub_arg_matches.is_present("json"); if json_output { rust_util::util_msg::set_logger_std_out(false); }