gen command
This commit is contained in:
parent
bc2078fe24
commit
5a97e3eb7c
1 changed files with 21 additions and 0 deletions
21
src/main.rs
21
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 {}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue