From e3d47e588adfee41d10b562e69657615c93a16e7 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Tue, 24 Sep 2019 12:32:35 -0700 Subject: [PATCH] . --- go/cmd/zerotier/cli/addroot.go | 18 ++++++++++++++++++ go/cmd/zerotier/cli/join.go | 18 ++++++++++++++++++ go/cmd/zerotier/cli/leave.go | 18 ++++++++++++++++++ go/cmd/zerotier/cli/networks.go | 18 ++++++++++++++++++ go/cmd/zerotier/cli/peers.go | 18 ++++++++++++++++++ go/cmd/zerotier/cli/removeroot.go | 18 ++++++++++++++++++ go/cmd/zerotier/cli/roots.go | 18 ++++++++++++++++++ go/cmd/zerotier/cli/set.go | 18 ++++++++++++++++++ go/cmd/zerotier/cli/show.go | 18 ++++++++++++++++++ go/cmd/zerotier/zerotier.go | 19 ++++++++++++------- 10 files changed, 174 insertions(+), 7 deletions(-) create mode 100644 go/cmd/zerotier/cli/addroot.go create mode 100644 go/cmd/zerotier/cli/join.go create mode 100644 go/cmd/zerotier/cli/leave.go create mode 100644 go/cmd/zerotier/cli/networks.go create mode 100644 go/cmd/zerotier/cli/peers.go create mode 100644 go/cmd/zerotier/cli/removeroot.go create mode 100644 go/cmd/zerotier/cli/roots.go create mode 100644 go/cmd/zerotier/cli/set.go create mode 100644 go/cmd/zerotier/cli/show.go diff --git a/go/cmd/zerotier/cli/addroot.go b/go/cmd/zerotier/cli/addroot.go new file mode 100644 index 000000000..2c9b74223 --- /dev/null +++ b/go/cmd/zerotier/cli/addroot.go @@ -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) { +} diff --git a/go/cmd/zerotier/cli/join.go b/go/cmd/zerotier/cli/join.go new file mode 100644 index 000000000..dfa946894 --- /dev/null +++ b/go/cmd/zerotier/cli/join.go @@ -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 + +// Join CLI command +func Join(args []string) { +} diff --git a/go/cmd/zerotier/cli/leave.go b/go/cmd/zerotier/cli/leave.go new file mode 100644 index 000000000..cba0d19ff --- /dev/null +++ b/go/cmd/zerotier/cli/leave.go @@ -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 + +// Leave CLI command +func Leave(args []string) { +} diff --git a/go/cmd/zerotier/cli/networks.go b/go/cmd/zerotier/cli/networks.go new file mode 100644 index 000000000..a7d80208f --- /dev/null +++ b/go/cmd/zerotier/cli/networks.go @@ -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 + +// Networks CLI command +func Networks(args []string) { +} diff --git a/go/cmd/zerotier/cli/peers.go b/go/cmd/zerotier/cli/peers.go new file mode 100644 index 000000000..df21b543d --- /dev/null +++ b/go/cmd/zerotier/cli/peers.go @@ -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 + +// Peers CLI command +func Peers(args []string) { +} diff --git a/go/cmd/zerotier/cli/removeroot.go b/go/cmd/zerotier/cli/removeroot.go new file mode 100644 index 000000000..60bbe1076 --- /dev/null +++ b/go/cmd/zerotier/cli/removeroot.go @@ -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 + +// RemoveRoot CLI command +func RemoveRoot(args []string) { +} diff --git a/go/cmd/zerotier/cli/roots.go b/go/cmd/zerotier/cli/roots.go new file mode 100644 index 000000000..56eb54b22 --- /dev/null +++ b/go/cmd/zerotier/cli/roots.go @@ -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 + +// Roots CLI command +func Roots(args []string) { +} diff --git a/go/cmd/zerotier/cli/set.go b/go/cmd/zerotier/cli/set.go new file mode 100644 index 000000000..14cf855eb --- /dev/null +++ b/go/cmd/zerotier/cli/set.go @@ -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 + +// Set CLI command +func Set(args []string) { +} diff --git a/go/cmd/zerotier/cli/show.go b/go/cmd/zerotier/cli/show.go new file mode 100644 index 000000000..865c13da2 --- /dev/null +++ b/go/cmd/zerotier/cli/show.go @@ -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 + +// Show CLI command +func Show(args []string) { +} diff --git a/go/cmd/zerotier/zerotier.go b/go/cmd/zerotier/zerotier.go index 98aafc984..39643f529 100644 --- a/go/cmd/zerotier/zerotier.go +++ b/go/cmd/zerotier/zerotier.go @@ -113,28 +113,33 @@ func main() { case "help": printHelp() os.Exit(0) - return - default: - printHelp() - os.Exit(1) - return - case "version": fmt.Printf("%d.%d.%d\n", zerotier.CoreVersionMajor, zerotier.CoreVersionMinor, zerotier.CoreVersionRevision) os.Exit(0) - 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) }