@@ -0,0 +1,18 @@
+/*
+ * Copyright (c)2019 ZeroTier, Inc.
+ *
+ * Use of this software is governed by the Business Source License included
+ * in the LICENSE.TXT file in the project's root directory.
+ * Change Date: 2023-01-01
+ * On the date above, in accordance with the Business Source License, use
+ * of this software will be governed by version 2.0 of the Apache License.
+ */
+/****/
+
+package cli
+// AddRoot CLI command
+func AddRoot(args []string) {
+}
+// Join CLI command
+func Join(args []string) {
+// Leave CLI command
+func Leave(args []string) {
+// Networks CLI command
+func Networks(args []string) {
+// Peers CLI command
+func Peers(args []string) {
+// RemoveRoot CLI command
+func RemoveRoot(args []string) {
+// Roots CLI command
+func Roots(args []string) {
+// Set CLI command
+func Set(args []string) {
+// Show CLI command
+func Show(args []string) {
@@ -113,28 +113,33 @@ func main() {
case "help":
printHelp()
os.Exit(0)
- return
- default:
- printHelp()
- os.Exit(1)
-
case "version":
fmt.Printf("%d.%d.%d\n", zerotier.CoreVersionMajor, zerotier.CoreVersionMinor, zerotier.CoreVersionRevision)
case "service":
cli.Service(cmdArgs)
case "status":
cli.Status(cmdArgs)
case "peers":
+ cli.Peers(cmdArgs)
case "roots":
+ cli.Roots(cmdArgs)
case "addroot":
+ cli.AddRoot(cmdArgs)
case "removeroot":
+ cli.RemoveRoot(cmdArgs)
case "networks":
+ cli.Networks(cmdArgs)
case "join":
+ cli.Join(cmdArgs)
case "leave":
+ cli.Leave(cmdArgs)
case "show":
+ cli.Show(cmdArgs)
case "set":
+ cli.Set(cmdArgs)
}
+ printHelp()
+ os.Exit(1)