feat: u2f
This commit is contained in:
11
src/main.rs
11
src/main.rs
@@ -1,10 +1,13 @@
|
||||
#[macro_use] extern crate rust_util;
|
||||
#[macro_use]
|
||||
extern crate rust_util;
|
||||
|
||||
mod cmd;
|
||||
mod fido;
|
||||
mod digest;
|
||||
mod register;
|
||||
mod sign;
|
||||
|
||||
use clap::App;
|
||||
use clap::{App, AppSettings};
|
||||
use cmd::{Command, CommandError};
|
||||
use cmd::DefaultCommandImpl;
|
||||
|
||||
@@ -15,7 +18,9 @@ fn main() -> CommandError {
|
||||
];
|
||||
let mut app = App::new(env!("CARGO_PKG_NAME"))
|
||||
.version(env!("CARGO_PKG_VERSION"))
|
||||
.about(env!("CARGO_PKG_DESCRIPTION"));
|
||||
.about(env!("CARGO_PKG_DESCRIPTION"))
|
||||
.long_about("Webauthn Cli is a command tool register and sign using FIDO security key")
|
||||
.setting(AppSettings::ColoredHelp);
|
||||
app = DefaultCommandImpl::process_command(app);
|
||||
for command in &commands {
|
||||
app = app.subcommand(command.subcommand());
|
||||
|
||||
Reference in New Issue
Block a user