You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
helm/cmd/helm/version.go

22 lines
342 B

package main
import (
"fmt"
"github.com/kubernetes/helm/pkg/version"
"github.com/spf13/cobra"
)
func init() {
RootCommand.AddCommand(versionCmd)
}
var versionCmd = &cobra.Command{
Use: "version",
Short: "Print the client version information.",
Run: func(cmd *cobra.Command, args []string) {
fmt.Println(version.Version)
},
}