chore: reorg cmd
This commit is contained in:
12
src/main.rs
12
src/main.rs
@@ -6,8 +6,8 @@ use rust_util::util_clap::{Command, CommandError};
|
||||
|
||||
mod fido;
|
||||
mod digest;
|
||||
mod cmd_register;
|
||||
mod cmd_sign;
|
||||
mod cmd_u2fregister;
|
||||
mod cmd_u2fsign;
|
||||
mod cmd_pgp;
|
||||
mod pgpcardutil;
|
||||
mod cmd_pgpcardlist;
|
||||
@@ -38,16 +38,16 @@ fn main() {
|
||||
|
||||
fn inner_main() -> CommandError {
|
||||
let commands: Vec<Box<dyn Command>> = vec![
|
||||
Box::new(cmd_register::CommandImpl),
|
||||
Box::new(cmd_sign::CommandImpl),
|
||||
Box::new(cmd_chall::CommandImpl),
|
||||
Box::new(cmd_challconfig::CommandImpl),
|
||||
Box::new(cmd_pgp::CommandImpl),
|
||||
Box::new(cmd_pgpcardlist::CommandImpl),
|
||||
Box::new(cmd_pgpcardsign::CommandImpl),
|
||||
Box::new(cmd_pgpcarddecrypt::CommandImpl),
|
||||
Box::new(cmd_piv::CommandImpl),
|
||||
Box::new(cmd_pivsign::CommandImpl),
|
||||
Box::new(cmd_chall::CommandImpl),
|
||||
Box::new(cmd_challconfig::CommandImpl),
|
||||
Box::new(cmd_u2fregister::CommandImpl),
|
||||
Box::new(cmd_u2fsign::CommandImpl),
|
||||
];
|
||||
let mut app = App::new(env!("CARGO_PKG_NAME"))
|
||||
.version(env!("CARGO_PKG_VERSION"))
|
||||
|
||||
Reference in New Issue
Block a user