()
| 334 | } |
| 335 | |
| 336 | func readTelemetryConfig() (bool, error) { |
| 337 | cliConfig, err := readCLIConfig() |
| 338 | if err != nil { |
| 339 | return false, err |
| 340 | } |
| 341 | |
| 342 | if cliConfig.Telemetry != nil && *cliConfig.Telemetry == false { |
| 343 | return false, nil |
| 344 | } |
| 345 | |
| 346 | return true, nil |
| 347 | } |
| 348 | |
| 349 | // Returns false if there is an error reading the CLI config |
| 350 | func isTelemetryEnabled() bool { |
no test coverage detected