mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-12 08:04:25 +08:00
* feat(go): add deprecation warning. * feat(go): add support for gateway commands. * feat(go): mention the server version in which the commands were deprecated.
18 lines
361 B
Go
18 lines
361 B
Go
package gateway
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
// rootCmd represents the base command when called without any subcommands.
|
|
var rootCmd = &cobra.Command{
|
|
Use: "gateway",
|
|
Short: "Manage Gateways.",
|
|
Long: `Manage Gateways.`,
|
|
Aliases: []string{"gw"},
|
|
}
|
|
|
|
// GetRoot returns the root subcommand.
|
|
func GetRoot() *cobra.Command {
|
|
return rootCmd
|
|
}
|