MCPcopy Index your code
hub / github.com/cortexlabs/cortex / readTelemetryConfig

Function readTelemetryConfig

cli/cmd/lib_cli_config.go:336–347  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

334}
335
336func 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
350func isTelemetryEnabled() bool {

Callers 2

isTelemetryEnabledFunction · 0.85
initFunction · 0.85

Calls 1

readCLIConfigFunction · 0.85

Tested by

no test coverage detected