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

Method IsSet

internal/cli/flags.go:39–50  ·  view source on GitHub ↗
(cmd *cobra.Command)

Source from the content-addressed store, hash-verified

37}
38
39func (f *Flag) IsSet(cmd *cobra.Command) bool {
40 if cmd.Flags().Changed(f.LongForm) {
41 return true
42 }
43 // Check if any alias is set.
44 for _, alias := range f.AlsoKnownAs {
45 if cmd.Flags().Changed(alias) {
46 return true
47 }
48 }
49 return false
50}
51
52func (f *Flag) Ask(cmd *cobra.Command, value interface{}, defaultValue *string) error {
53 return askFlag(cmd, f, value, defaultValue, false)

Callers 15

updateEmailProviderCmdFunction · 0.80
collectNameFunction · 0.80
collectAPIInputsFunction · 0.80
handleProjectDetectionFunction · 0.80
createAppCmdFunction · 0.80
updateAppCmdFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected