MCPcopy Index your code
hub / github.com/cli/cli / DisableTelemetry

Function DisableTelemetry

pkg/cmdutil/telemetry.go:50–55  ·  view source on GitHub ↗
(cmd *cobra.Command)

Source from the content-addressed store, hash-verified

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

Callers 8

TestRecordTelemetryFunction · 0.92
NewCmdCompletionFunction · 0.92
NewCmdShellAliasFunction · 0.92
NewCmdAliasFunction · 0.92
NewCmdExtensionFunction · 0.92
newCmdSendTelemetryFunction · 0.92

Calls

no outgoing calls

Tested by 2

TestRecordTelemetryFunction · 0.74