mirror of
https://github.com/kubesphere/kubekey.git
synced 2025-12-29 13:33:15 +00:00
21 lines
368 B
Go
21 lines
368 B
Go
package cmd
|
|
|
|
import (
|
|
"fmt"
|
|
"github.com/kubesphere/kubekey/pkg/util"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
func NewCmdVersion() *cobra.Command {
|
|
var versionCmd = &cobra.Command{
|
|
Use: "version",
|
|
Short: "Get Version Information",
|
|
Args: cobra.MaximumNArgs(0),
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
fmt.Println(util.VERSION)
|
|
},
|
|
}
|
|
|
|
return versionCmd
|
|
}
|