NewCmd is a cobra command printing build information
()
| 30 | |
| 31 | // NewCmd is a cobra command printing build information |
| 32 | func NewCmd() *cobra.Command { |
| 33 | return &cobra.Command{ |
| 34 | Use: "version", |
| 35 | Short: "Prints version, commit sha and date of the build", |
| 36 | Run: func(_ *cobra.Command, _ []string) { |
| 37 | fmt.Printf("Build: %+v\n", versions.Info) |
| 38 | }, |
| 39 | } |
| 40 | } |