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

Function addPersistentFlags

internal/cli/root.go:152–164  ·  view source on GitHub ↗
(rootCmd *cobra.Command, cli *cli)

Source from the content-addressed store, hash-verified

150}
151
152func addPersistentFlags(rootCmd *cobra.Command, cli *cli) {
153 rootCmd.PersistentFlags().StringVar(&cli.tenant,
154 "tenant", cli.Config.DefaultTenant, "Specific tenant to use.")
155
156 rootCmd.PersistentFlags().BoolVar(&cli.debug,
157 "debug", false, "Enable debug mode.")
158
159 rootCmd.PersistentFlags().BoolVar(&cli.noInput,
160 "no-input", false, "Disable interactivity.")
161
162 rootCmd.PersistentFlags().BoolVar(&cli.noColor,
163 "no-color", false, "Disable colors.")
164}
165
166func addSubCommands(rootCmd *cobra.Command, cli *cli) {
167 // The order of the commands here matters.

Callers 2

GenerateDocsFunction · 0.85
ExecuteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected