(cmd *cobra.Command, telemetry ghtelemetry.EventRecorder)
| 41 | } |
| 42 | |
| 43 | func RecordTelemetryForSubcommands(cmd *cobra.Command, telemetry ghtelemetry.EventRecorder) { |
| 44 | for _, c := range cmd.Commands() { |
| 45 | RecordTelemetry(c, telemetry) |
| 46 | RecordTelemetryForSubcommands(c, telemetry) |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | func DisableTelemetry(cmd *cobra.Command) { |
| 51 | if cmd.Annotations == nil { |