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

Method Disable

internal/telemetry/telemetry.go:270–275  ·  view source on GitHub ↗

Disable suppresses all events in the invocation, including already recorded events. It must be called before Finish.

()

Source from the content-addressed store, hash-verified

268// Disable suppresses all events in the invocation, including already recorded
269// events. It must be called before Finish.
270func (s *service) Disable() {
271 s.mu.Lock()
272 defer s.mu.Unlock()
273
274 s.disabled = true
275}
276
277// Record copies a complete event into the service.
278// Recording after Finish has no effect.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected