()
| 24 | ) |
| 25 | |
| 26 | func NewCmd() *cobra.Command { |
| 27 | versionCmd := &cobra.Command{ |
| 28 | Use: "version", |
| 29 | Short: "Prints the version of operator-sdk", |
| 30 | Run: func(_ *cobra.Command, _ []string) { |
| 31 | run() |
| 32 | }, |
| 33 | } |
| 34 | return versionCmd |
| 35 | } |
| 36 | |
| 37 | func run() { |
| 38 | version := ver.GitVersion |
no test coverage detected