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

Function askBoolFlag

internal/cli/flags.go:197–205  ·  view source on GitHub ↗
(cmd *cobra.Command, f *Flag, value *bool, defaultValue *bool, isUpdate bool)

Source from the content-addressed store, hash-verified

195}
196
197func askBoolFlag(cmd *cobra.Command, f *Flag, value *bool, defaultValue *bool, isUpdate bool) error {
198 if shouldAsk(cmd, f, isUpdate) {
199 if err := askBool(f, value, defaultValue); err != nil {
200 return err
201 }
202 }
203
204 return nil
205}
206
207func askIntFlag(cmd *cobra.Command, f *Flag, value *int, defaultValue *string, isUpdate bool) error {
208 if shouldAsk(cmd, f, isUpdate) {

Callers 2

AskBoolMethod · 0.85
AskBoolUMethod · 0.85

Calls 2

shouldAskFunction · 0.85
askBoolFunction · 0.85

Tested by

no test coverage detected