feat: card cli
This commit is contained in:
@@ -12,7 +12,7 @@ impl Command for CommandImpl {
|
||||
fn name(&self) -> &str { "piv-decrypt" }
|
||||
|
||||
fn subcommand<'a>(&self) -> App<'a, 'a> {
|
||||
SubCommand::with_name(self.name()).about("PIV Sign subcommand")
|
||||
SubCommand::with_name(self.name()).about("PIV Decrypt subcommand (RSA)")
|
||||
.arg(Arg::with_name("pin").short("p").long("pin").takes_value(true).default_value("123456").help("OpenPGP card user pin"))
|
||||
.arg(Arg::with_name("encrypted-data").long("encrypted-data").takes_value(true).help("Encrypted data"))
|
||||
.arg(Arg::with_name("json").long("json").help("JSON output"))
|
||||
|
||||
@@ -20,7 +20,7 @@ impl Command for CommandImpl {
|
||||
fn name(&self) -> &str { "piv-ecdh" }
|
||||
|
||||
fn subcommand<'a>(&self) -> App<'a, 'a> {
|
||||
SubCommand::with_name(self.name()).about("PIV ECDH subcommand")
|
||||
SubCommand::with_name(self.name()).about("PIV ECDH subcommand (P-256)")
|
||||
.arg(Arg::with_name("pin").short("p").long("pin").takes_value(true).help("PIV card user pin"))
|
||||
.arg(Arg::with_name("slot").short("s").long("slot").takes_value(true).help("PIV slot, e.g. 82, 83 ..."))
|
||||
.arg(Arg::with_name("public").long("public").help("Public key"))
|
||||
|
||||
Reference in New Issue
Block a user