MCPcopy Create free account
hub / github.com/auth0/auth0-cli / commandTrackingProperties

Function commandTrackingProperties

internal/cli/root.go:275–286  ·  view source on GitHub ↗
(cli *cli)

Source from the content-addressed store, hash-verified

273}
274
275func commandTrackingProperties(cli *cli) map[string]string {
276 interactive := iostream.IsInputTerminal() && iostream.IsOutputTerminal()
277
278 return map[string]string{
279 "interactive": boolString(interactive),
280 "ci": boolString(isCIEnvironment(os.Getenv)),
281 "no_input": boolString(cli.noInput),
282 "output_format": outputFormatForTracking(cli.renderer),
283 "forced": boolString(cli.force),
284 "agent_client": detectAgent(interactive),
285 }
286}
287
288func outputFormatForTracking(renderer *display.Renderer) string {
289 if renderer == nil || renderer.Format == "" {

Callers 1

trackCommandOutcomeFunction · 0.85

Calls 6

IsInputTerminalFunction · 0.92
IsOutputTerminalFunction · 0.92
boolStringFunction · 0.85
isCIEnvironmentFunction · 0.85
outputFormatForTrackingFunction · 0.85
detectAgentFunction · 0.85

Tested by

no test coverage detected