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