Returns false if there is an error reading the CLI config
()
| 348 | |
| 349 | // Returns false if there is an error reading the CLI config |
| 350 | func isTelemetryEnabled() bool { |
| 351 | enabled, err := readTelemetryConfig() |
| 352 | if err != nil { |
| 353 | return false |
| 354 | } |
| 355 | return enabled |
| 356 | } |
| 357 | |
| 358 | // Will return nil if not configured |
| 359 | func readEnv(envName string) (*cliconfig.Environment, error) { |
no test coverage detected