Files
my-rook-config/cmd/rookctl/version/version.go
T

18 lines
306 B
Go
Raw Normal View History

package version
2016-11-07 16:52:46 -08:00
import (
"fmt"
"github.com/rook/rook/pkg/version"
"github.com/spf13/cobra"
)
var Cmd = &cobra.Command{
2016-11-07 16:52:46 -08:00
Use: "version",
2017-06-25 10:19:59 -07:00
Short: "Print the version number of rook",
2016-11-07 16:52:46 -08:00
RunE: func(cmd *cobra.Command, args []string) error {
fmt.Printf("rook: %v\n", version.Version)
return nil
},
}