(cmd *cobra.Command)
| 55 | } |
| 56 | |
| 57 | func DisableTelemetryForSubcommands(cmd *cobra.Command) { |
| 58 | for _, c := range cmd.Commands() { |
| 59 | DisableTelemetry(c) |
| 60 | DisableTelemetryForSubcommands(c) |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | func isTelemetryDisabled(cmd *cobra.Command) bool { |
| 65 | return cmd.Annotations["telemetry"] == "disabled" |
no test coverage detected