update subcmds

This commit is contained in:
Callan Bryant 2020-03-02 00:48:59 +00:00
parent cbaabd4579
commit 0e06d0181f
No known key found for this signature in database
GPG Key ID: C31FA9DF3ACBFFAA
2 changed files with 14 additions and 3 deletions

View File

@ -1,6 +1,13 @@
Purpose: to allow an overview of Darksky peers and provide a mechanism to allow
easy joining
OUT OF DATE. See help cmd.
Could use https://github.com/WireGuard/wgctrl-go + json database.
Root separation by file deposit.

View File

@ -24,11 +24,13 @@ func main() {
case "init":
dsnet.Init()
case "up":
case "add":
dsnet.Add()
case "up":
case "update":
case "report":
case "down":
@ -47,8 +49,10 @@ Available commands:
init : Create %s containing default configuration + new keys without loading. Edit to taste.
add : Generate configuration for a new peer, adding to %s. Send with passworded ffsend.
sync : Synchronise wireguard configuration with %s, creating and activating interface if necessary.
up : Create the interface, run pre/post up, update
update : Update wireguard configuration with %s, adding/removing peers after validating matching config
report : Generate a JSON status report to the location configured in %s.
down : Destroy the interface, run pre/post down
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.