MCPcopy
hub / github.com/cortexlabs/cortex / isTelemetryEnabled

Function isTelemetryEnabled

cli/cmd/lib_cli_config.go:350–356  ·  view source on GitHub ↗

Returns false if there is an error reading the CLI config

()

Source from the content-addressed store, hash-verified

348
349// Returns false if there is an error reading the CLI config
350func 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
359func readEnv(envName string) (*cliconfig.Environment, error) {

Callers 5

MustGetOperatorConfigFunction · 0.85
getInstallClusterConfigFunction · 0.85
cluster.goFile · 0.85
getInfoOperatorResponseFunction · 0.85

Calls 1

readTelemetryConfigFunction · 0.85

Tested by

no test coverage detected