feat: pgp card make
This commit is contained in:
@@ -135,6 +135,7 @@ impl Command for CommandImpl {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn run(&self, _arg_matches: &ArgMatches, sub_arg_matches: &ArgMatches) -> CommandError {
|
fn run(&self, _arg_matches: &ArgMatches, sub_arg_matches: &ArgMatches) -> CommandError {
|
||||||
|
warning!("WORKING!!!");
|
||||||
let pin_opt = sub_arg_matches.value_of("pin");
|
let pin_opt = sub_arg_matches.value_of("pin");
|
||||||
let pin = opt_value_result!(pin_opt, "Pin must be assigned");
|
let pin = opt_value_result!(pin_opt, "Pin must be assigned");
|
||||||
if pin.len() < 8 { return simple_error!("Admin pin length:{}, must >= 8!", pin.len()); }
|
if pin.len() < 8 { return simple_error!("Admin pin length:{}, must >= 8!", pin.len()); }
|
||||||
|
|||||||
Reference in New Issue
Block a user