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

Function askBool

internal/cli/input.go:33–39  ·  view source on GitHub ↗
(i commandInput, value *bool, defaultValue *bool)

Source from the content-addressed store, hash-verified

31}
32
33func askBool(i commandInput, value *bool, defaultValue *bool) error {
34 if err := prompt.AskBool(i.GetLabel(), value, auth0.BoolValue(defaultValue)); err != nil {
35 return handleInputError(err)
36 }
37
38 return nil
39}
40
41func askInt(i commandInput, value *int, defaultValue *string, isUpdate bool) error {
42 isRequired := isInputRequired(i, isUpdate)

Callers 1

askBoolFlagFunction · 0.85

Calls 3

AskBoolFunction · 0.92
handleInputErrorFunction · 0.85
GetLabelMethod · 0.65

Tested by

no test coverage detected