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

Method SetTelemetryCommand

internal/config/config.go:319–321  ·  view source on GitHub ↗

SetTelemetryCommand sets the command reported with token refresh attempts, such as "gh auth token". Callers must not pass user-defined names, like those of extensions or aliases.

(command string)

Source from the content-addressed store, hash-verified

317// SetTelemetryCommand sets the command reported with token refresh attempts, such as "gh auth token". Callers must
318// not pass user-defined names, like those of extensions or aliases.
319func (c *AuthConfig) SetTelemetryCommand(command string) {
320 c.telemetryCommand.Store(&command)
321}
322
323// ActiveTokenType reports what kind of credential the active token is, so a
324// caller that only needs to know that can avoid handling the token. It is

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected