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

Method configureRenderer

internal/cli/cli.go:152–166  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

150}
151
152func (c *cli) configureRenderer() {
153 c.renderer.Tenant = c.tenant
154
155 if c.json {
156 c.renderer.Format = display.OutputFormatJSON
157 }
158
159 if c.jsonCompact {
160 c.renderer.Format = display.OutputFormatJSONCompact
161 }
162
163 if c.csv {
164 c.renderer.Format = display.OutputFormatCSV
165 }
166}
167
168func canPrompt(cmd *cobra.Command) bool {
169 noInput, err := cmd.Root().Flags().GetBool("no-input")

Callers 1

buildRootCmdFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected