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