chore: use_clap & clippy

This commit is contained in:
2021-07-18 12:08:59 +08:00
parent bcf097292f
commit d44df83c7f
13 changed files with 49 additions and 49 deletions

View File

@@ -1,7 +1,7 @@
#[macro_use]
extern crate rust_util;
mod cmd;
// mod cmd;
mod fido;
mod digest;
mod register;
@@ -15,10 +15,20 @@ mod piv;
mod chall;
mod challconfig;
use clap::{App, AppSettings};
use cmd::{Command, CommandError};
use cmd::DefaultCommandImpl;
use clap::{App, AppSettings, ArgMatches};
use rust_util::util_clap::{CommandError, Command};
pub struct DefaultCommandImpl;
impl DefaultCommandImpl {
pub fn process_command<'a>(app: App<'a, 'a>) -> App<'a, 'a> {
app
}
pub fn run(_arg_matches: &ArgMatches) -> CommandError {
information!("WebAuthn(OpenPGP) cli, use --help for help");
Ok(None)
}
}
fn main() {
if let Err(e) = inner_main() {