feat: add json output for pgp card sign
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user