mirror of https://github.com/helm/helm
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.
22 lines
342 B
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)
|
|
},
|
|
}
|