mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-05-13 22:13:15 +00:00
.
This commit is contained in:
parent
f4a5abeed9
commit
e3d47e588a
18
go/cmd/zerotier/cli/addroot.go
Normal file
18
go/cmd/zerotier/cli/addroot.go
Normal file
@ -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) {
|
||||||
|
}
|
18
go/cmd/zerotier/cli/join.go
Normal file
18
go/cmd/zerotier/cli/join.go
Normal file
@ -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) {
|
||||||
|
}
|
18
go/cmd/zerotier/cli/leave.go
Normal file
18
go/cmd/zerotier/cli/leave.go
Normal file
@ -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) {
|
||||||
|
}
|
18
go/cmd/zerotier/cli/networks.go
Normal file
18
go/cmd/zerotier/cli/networks.go
Normal file
@ -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) {
|
||||||
|
}
|
18
go/cmd/zerotier/cli/peers.go
Normal file
18
go/cmd/zerotier/cli/peers.go
Normal file
@ -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) {
|
||||||
|
}
|
18
go/cmd/zerotier/cli/removeroot.go
Normal file
18
go/cmd/zerotier/cli/removeroot.go
Normal file
@ -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) {
|
||||||
|
}
|
18
go/cmd/zerotier/cli/roots.go
Normal file
18
go/cmd/zerotier/cli/roots.go
Normal file
@ -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) {
|
||||||
|
}
|
18
go/cmd/zerotier/cli/set.go
Normal file
18
go/cmd/zerotier/cli/set.go
Normal file
@ -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) {
|
||||||
|
}
|
18
go/cmd/zerotier/cli/show.go
Normal file
18
go/cmd/zerotier/cli/show.go
Normal file
@ -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) {
|
||||||
|
}
|
@ -113,28 +113,33 @@ func main() {
|
|||||||
case "help":
|
case "help":
|
||||||
printHelp()
|
printHelp()
|
||||||
os.Exit(0)
|
os.Exit(0)
|
||||||
return
|
|
||||||
default:
|
|
||||||
printHelp()
|
|
||||||
os.Exit(1)
|
|
||||||
return
|
|
||||||
|
|
||||||
case "version":
|
case "version":
|
||||||
fmt.Printf("%d.%d.%d\n", zerotier.CoreVersionMajor, zerotier.CoreVersionMinor, zerotier.CoreVersionRevision)
|
fmt.Printf("%d.%d.%d\n", zerotier.CoreVersionMajor, zerotier.CoreVersionMinor, zerotier.CoreVersionRevision)
|
||||||
os.Exit(0)
|
os.Exit(0)
|
||||||
|
|
||||||
case "service":
|
case "service":
|
||||||
cli.Service(cmdArgs)
|
cli.Service(cmdArgs)
|
||||||
case "status":
|
case "status":
|
||||||
cli.Status(cmdArgs)
|
cli.Status(cmdArgs)
|
||||||
case "peers":
|
case "peers":
|
||||||
|
cli.Peers(cmdArgs)
|
||||||
case "roots":
|
case "roots":
|
||||||
|
cli.Roots(cmdArgs)
|
||||||
case "addroot":
|
case "addroot":
|
||||||
|
cli.AddRoot(cmdArgs)
|
||||||
case "removeroot":
|
case "removeroot":
|
||||||
|
cli.RemoveRoot(cmdArgs)
|
||||||
case "networks":
|
case "networks":
|
||||||
|
cli.Networks(cmdArgs)
|
||||||
case "join":
|
case "join":
|
||||||
|
cli.Join(cmdArgs)
|
||||||
case "leave":
|
case "leave":
|
||||||
|
cli.Leave(cmdArgs)
|
||||||
case "show":
|
case "show":
|
||||||
|
cli.Show(cmdArgs)
|
||||||
case "set":
|
case "set":
|
||||||
|
cli.Set(cmdArgs)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
printHelp()
|
||||||
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user