netmaker/cli/cmd/gateway/root.go
Vishal Dalwadi 9a7c13b8a6
NET-1962: add gateway subcommand. (#3339)
* feat(go): add deprecation warning.

* feat(go): add support for gateway commands.

* feat(go): mention the server version in which the commands were deprecated.
2025-02-24 08:50:10 +03:00

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
}