From 7a2dc1098eead28406a55150b08951ea6ab5aa54 Mon Sep 17 00:00:00 2001 From: Callan Bryant Date: Thu, 27 Feb 2020 23:14:04 +0000 Subject: [PATCH] add report cmd to help --- cmd/dsnet.go | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/cmd/dsnet.go b/cmd/dsnet.go index 8df7e88..10ab550 100644 --- a/cmd/dsnet.go +++ b/cmd/dsnet.go @@ -29,16 +29,19 @@ func main() { } func help() { - fmt.Printf(`Usage: dsnet + fmt.Printf(`dsnet is a simple tool to manage a wireguard VPN. + +Usage: dsnet Available commands: - init : Create %s containing default configuration + new keys without loading. Edit to taste. - add : Generate configuration for a new peer. (Send with passworded ffsend) - sync : Synchronise wireguard configuration with %s, creating and activating interface if necessary + init : Create %s containing default configuration + new keys without loading. Edit to taste. + add : Generate configuration for a new peer. (Send with passworded ffsend) + sync : Synchronise wireguard configuration with %s, creating and activating interface if necessary + report : Generate a JSON status report to the location configured in %s To remove an interface or bring it down, use standard tools such as iproute2. To modify or remove peers, edit %s and then run sync. -`, dstask.CONFIG_FILE, dstask.CONFIG_FILE, dstask.CONFIG_FILE) +`, dstask.CONFIG_FILE, dstask.CONFIG_FILE, dstask.CONFIG_FILE, dstask.CONFIG_FILE) }