(cmd *cobra.Command)
| 69 | } |
| 70 | |
| 71 | func DisableTelemetryForSubcommands(cmd *cobra.Command) { |
| 72 | for _, c := range cmd.Commands() { |
| 73 | DisableTelemetry(c) |
| 74 | DisableTelemetryForSubcommands(c) |
| 75 | } |
| 76 | } |
| 77 | |
| 78 | func isTelemetryDisabled(cmd *cobra.Command) bool { |
| 79 | return cmd.Annotations["telemetry"] == "disabled" |
no test coverage detected