INNER CODE UNIT · Go
NewVersionCmd
we-dcode/kubetunnel · cmd/cli/kubetunnel.go:72
func NewVersionCmd() *cobra.Command {
versionCmd := &cobra.Command{
Use: "version",
Short: fmt.Sprintf("Print the version of %s", constants.KubetunnelSlug),
Long: ``,
Run: func(cmd *cobra.Command, args []string) {
fmt.Printf("%s version: %s\nhttps://github.com/we-dcode/kube-tunnel\n", constants.KubetunnelSlug, Version)
},
}
return versionCmd
}
func NewInstallKubeTunnelCmd() *cobra.Command {
var kubeConfig, namespace, kubetunnelVersion string
svcCmd := &cobra.Command{