MCPcopy Create free account
hub / github.com/cloudquery/cloudquery / getEnvironment

Function getEnvironment

cli/internal/analytics/client.go:47–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45}
46
47func getEnvironment() string {
48 if env.IsCloud() {
49 return "cloud"
50 }
51 return "cli"
52}
53
54// getSyncEventDetails returns the cached event details if available, otherwise it fetches the details from the API
55func getSyncEventDetails(ctx context.Context) *eventDetails {

Callers 2

refreshSyncEventDetailsFunction · 0.85
getUserIDEmailFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected