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

Method refreshTelemetryCommand

internal/config/refreshable_telemetry.go:134–139  ·  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

132// refreshTelemetryCommand returns the command path set by SetTelemetryCommand, or "unknown" when a refresh happens
133// before the command is resolved.
134func (c *AuthConfig) refreshTelemetryCommand() string {
135 if command := c.telemetryCommand.Load(); command != nil {
136 return *command
137 }
138 return "unknown"
139}
140
141func envSet(name string) string {
142 return strconv.FormatBool(os.Getenv(name) != "")

Callers 1

recordRefreshAttemptMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected