| 1 |
use clap::Subcommand; |
| 2 |
|
| 3 |
pub mod add; |
| 4 |
pub mod bind; |
| 5 |
pub mod delete; |
| 6 |
pub mod expire; |
| 7 |
pub mod export; |
| 8 |
pub mod password; |
| 9 |
pub mod revoke; |
| 10 |
|
| 11 |
#[derive(Debug, Subcommand)] |
| 12 |
#[clap( |
| 13 |
name = "subkey", |
| 14 |
about = "Manage subkeys", |
| 15 |
long_about = "\ |
| 16 |
Manage subkeys |
| 17 |
|
| 18 |
Add new subkeys to an existing certificate, change their expiration, \ |
| 19 |
and revoke them.", |
| 20 |
subcommand_required = true, |
| 21 |
arg_required_else_help = true, |
| 22 |
disable_help_subcommand = true, |
| 23 |
)] |
| 24 |
#[non_exhaustive] |
| 25 |
pub enum Command { |
| 26 |
Add(add::Command), |
| 27 |
Export(export::Command), |
| 28 |
Delete(delete::Command), |
| 29 |
Password(password::Command), |
| 30 |
Expire(expire::Command), |
| 31 |
Revoke(revoke::Command), |
| 32 |
Bind(bind::Command), |
| 33 |
} |