(cmd *cobra.Command)
| 48 | } |
| 49 | |
| 50 | func DisableTelemetry(cmd *cobra.Command) { |
| 51 | if cmd.Annotations == nil { |
| 52 | cmd.Annotations = map[string]string{} |
| 53 | } |
| 54 | cmd.Annotations["telemetry"] = "disabled" |
| 55 | } |
| 56 | |
| 57 | func DisableTelemetryForSubcommands(cmd *cobra.Command) { |
| 58 | for _, c := range cmd.Commands() { |
no outgoing calls