()
| 10 | ) |
| 11 | |
| 12 | func newVersionCmd() *cobra.Command { |
| 13 | return &cobra.Command{ |
| 14 | Use: "version", |
| 15 | Short: "Print the version information", |
| 16 | Long: "Display the version and commit hash", |
| 17 | Args: cobra.NoArgs, |
| 18 | Run: runVersionCommand, |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | func runVersionCommand(cmd *cobra.Command, args []string) { |
| 23 | telemetry.TrackCommand(cmd.Context(), "version", args) |