MCPcopy Create free account
hub / github.com/cli/cli / DisableTelemetry

Function DisableTelemetry

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

Source from the content-addressed store, hash-verified

62}
63
64func DisableTelemetry(cmd *cobra.Command) {
65 if cmd.Annotations == nil {
66 cmd.Annotations = map[string]string{}
67 }
68 cmd.Annotations["telemetry"] = "disabled"
69}
70
71func DisableTelemetryForSubcommands(cmd *cobra.Command) {
72 for _, c := range cmd.Commands() {

Callers 7

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

Calls

no outgoing calls

Tested by 1

TestRecordTelemetryFunction · 0.74