INNER CODE UNIT · Go
NewRootCmd
we-dcode/kubetunnel · cmd/cli/kubetunnel.go:56
func NewRootCmd() *cobra.Command {
rootCmd := &cobra.Command{
Use: constants.KubetunnelSlug,
Short: "Duplex interaction with K8s cluster.",
Long: "\"Deploy\" local service to running Kubernetes cluster and allow duplex interaction.",
}
rootCmd.AddCommand(NewInstallKubeTunnelCmd())
rootCmd.AddCommand(NewCreateTunnelCmd())
rootCmd.AddCommand(NewVersionCmd())
rootCmd.AddCommand(cmds.NewCmdCompletion(os.Stdout, ""))
//rootCmd.SetHelpCommand()
return rootCmd
}
func NewVersionCmd() *cobra.Command {
versionCmd := &cobra.Command{