From b9911d0db75af6937833a2d31724ffbb2e99e4cb Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Wed, 2 Oct 2019 07:09:54 -0700 Subject: [PATCH] More plumbing --- go/cmd/zerotier/cli/help.go | 6 +- go/cmd/zerotier/cli/identity.go | 35 +--------- go/cmd/zerotier/cli/join.go | 29 +++++++++ go/cmd/zerotier/cli/leave.go | 25 +++++++ go/cmd/zerotier/cli/locator.go | 13 +--- go/cmd/zerotier/cli/misc.go | 54 +++++++++++++++ go/cmd/zerotier/cli/network.go | 105 ++++++++++++++++++++++++++++++ go/cmd/zerotier/cli/networks.go | 33 +++++++++- go/cmd/zerotier/cli/peers.go | 2 +- go/cmd/zerotier/cli/removeroot.go | 21 ++++++ go/cmd/zerotier/cli/roots.go | 2 +- go/cmd/zerotier/cli/show.go | 18 ----- go/cmd/zerotier/cli/status.go | 20 +++--- go/cmd/zerotier/zerotier.go | 13 ++-- go/pkg/zerotier/api.go | 78 +++++++++++++++++----- go/pkg/zerotier/localconfig.go | 17 +++-- go/pkg/zerotier/node.go | 23 +++++-- go/pkg/zerotier/route.go | 4 +- 18 files changed, 384 insertions(+), 114 deletions(-) create mode 100644 go/cmd/zerotier/cli/network.go delete mode 100644 go/cmd/zerotier/cli/show.go diff --git a/go/cmd/zerotier/cli/help.go b/go/cmd/zerotier/cli/help.go index d5a8c9c9e..f9197d215 100644 --- a/go/cmd/zerotier/cli/help.go +++ b/go/cmd/zerotier/cli/help.go @@ -44,7 +44,7 @@ Commands: addroot [name] Add a VL1 root removeroot Remove a VL1 root locator [args] Locator management commands - new
[...] Create and sign a locator + new
[...] Create and sign locator for identity newdnskey Create a secure DNS name and secret getdns Create secure DNS TXT records identity [args] Identity management commands @@ -53,10 +53,10 @@ Commands: validate Locally validate an identity sign Sign a file with an identity's key verify Verify a signature - networks Show joined VL2 virtual networks + networks List joined VL2 virtual networks + network Show verbose network info join Join a virtual network leave Leave a virtual network - show Show verbose network info set