chore: use_clap & clippy
This commit is contained in:
18
src/main.rs
18
src/main.rs
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user