feat: pgp-age-address

This commit is contained in:
2023-10-06 11:07:47 +08:00
parent a544daae67
commit 362a4ca81b
2 changed files with 3 additions and 3 deletions

View File

@@ -11,7 +11,7 @@ const AGE_PUBLIC_KEY_PREFIX: &str = "age";
pub struct CommandImpl; pub struct CommandImpl;
impl Command for CommandImpl { impl Command for CommandImpl {
fn name(&self) -> &str { "age-address" } fn name(&self) -> &str { "pgp-age-address" }
fn subcommand<'a>(&self) -> App<'a, 'a> { fn subcommand<'a>(&self) -> App<'a, 'a> {
SubCommand::with_name(self.name()).about("OpenPGP Card Encryption key to age address") SubCommand::with_name(self.name()).about("OpenPGP Card Encryption key to age address")

View File

@@ -35,7 +35,7 @@ mod cmd_pivgenerate;
mod cmd_chall; mod cmd_chall;
mod cmd_challconfig; mod cmd_challconfig;
mod cmd_sshagent; mod cmd_sshagent;
mod cmd_ageaddress; mod cmd_pgpageaddress;
pub struct DefaultCommandImpl; pub struct DefaultCommandImpl;
@@ -86,7 +86,7 @@ fn inner_main() -> CommandError {
Box::new(cmd_u2fregister::CommandImpl), Box::new(cmd_u2fregister::CommandImpl),
Box::new(cmd_u2fsign::CommandImpl), Box::new(cmd_u2fsign::CommandImpl),
Box::new(cmd_sshagent::CommandImpl), Box::new(cmd_sshagent::CommandImpl),
Box::new(cmd_ageaddress::CommandImpl), Box::new(cmd_pgpageaddress::CommandImpl),
]; ];
let mut app = App::new(env!("CARGO_PKG_NAME")) let mut app = App::new(env!("CARGO_PKG_NAME"))
.version(env!("CARGO_PKG_VERSION")) .version(env!("CARGO_PKG_VERSION"))