From 5a97e3eb7c622dec30ce0498aa7c890cf23b34b6 Mon Sep 17 00:00:00 2001 From: femsci Date: Mon, 6 May 2024 13:16:26 +0200 Subject: [PATCH] gen command --- src/main.rs | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/main.rs b/src/main.rs index dbfef7e..1d9e70d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -27,5 +27,26 @@ fn main() { .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(); + + match matches {} }