gen command

This commit is contained in:
femsci 2024-05-06 13:16:26 +02:00
parent bc2078fe24
commit 5a97e3eb7c
Signed by: femsci
GPG key ID: 08F7911F0E650C67

View file

@ -27,5 +27,26 @@ fn main() {
.help("number of peers"), .help("number of peers"),
), ),
) )
.subcommand(
Command::new(C_GENERATE_FULL)
.short_flag('G')
.long_flag(C_GENERATE_FULL)
.about("create full wg config")
.arg(
Arg::new(A_PEERCOUNT)
.short('n')
.long("peercount")
.help("number of peers"),
),
)
.subcommand(
Command::new(S_KEYS)
.short_flag('k')
.long_flag(S_KEYS)
.about("generate keys")
.subcommand(Command::new("priv")),
)
.get_matches(); .get_matches();
match matches {}
} }