2016-12-01 16:10:46 -08:00
|
|
|
package version
|
2016-11-07 16:52:46 -08:00
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"fmt"
|
|
|
|
|
|
|
|
|
|
"github.com/rook/rook/pkg/version"
|
|
|
|
|
"github.com/spf13/cobra"
|
|
|
|
|
)
|
|
|
|
|
|
2016-12-01 16:10:46 -08:00
|
|
|
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
|
|
|
|
|
},
|
|
|
|
|
}
|