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

Method refreshTelemetryCommand

internal/config/refreshable_telemetry.go:160–165  ·  view source on GitHub ↗

refreshTelemetryCommand returns the command path set by SetTelemetryCommand, or "unknown" when a refresh happens before the command is resolved.

()

Source from the content-addressed store, hash-verified

158// refreshTelemetryCommand returns the command path set by SetTelemetryCommand, or "unknown" when a refresh happens
159// before the command is resolved.
160func (c *AuthConfig) refreshTelemetryCommand() string {
161 if command := c.telemetryCommand.Load(); command != nil {
162 return *command
163 }
164 return "unknown"
165}
166
167func envSet(name string) string {
168 return strconv.FormatBool(os.Getenv(name) != "")

Callers 1

recordRefreshAttemptMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected