feat: add json output for pgp card sign

This commit is contained in:
2021-07-11 09:55:47 +08:00
parent 8a5bb56de9
commit 98f4d475fb
2 changed files with 33 additions and 7 deletions

View File

@@ -1,4 +1,4 @@
use clap::{ArgMatches, SubCommand, App, Arg};
use clap::{ArgMatches, SubCommand, App};
use crate::cmd::{Command, CommandError};
use openpgp_card::{OpenPGPCard, DecryptMe, Hash};
@@ -9,9 +9,7 @@ impl Command for CommandImpl {
fn subcommand<'a>(&self) -> App<'a, 'a> {
SubCommand::with_name(self.name()).about("OpenPGP Card List subcommand")
// .arg(Arg::with_name("app-id").long("app-id").default_value("https://example.com").help("App id"))
// .arg(Arg::with_name("timeout").long("timeout").default_value("10").help("Timeout in seconds"))
.arg(Arg::with_name("json").long("json").help("JSON output"))
// .arg(Arg::with_name("json").long("json").help("JSON output"))
}
fn run(&self, _arg_matches: &ArgMatches, _sub_arg_matches: &ArgMatches) -> CommandError {