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

Function askInt

internal/cli/input.go:41–50  ·  view source on GitHub ↗
(i commandInput, value *int, defaultValue *string, isUpdate bool)

Source from the content-addressed store, hash-verified

39}
40
41func askInt(i commandInput, value *int, defaultValue *string, isUpdate bool) error {
42 isRequired := isInputRequired(i, isUpdate)
43 input := prompt.TextInput(i.GetName(), i.GetLabel(), i.GetHelp(), auth0.StringValue(defaultValue), isRequired)
44
45 if err := prompt.AskOne(input, value); err != nil {
46 return handleInputError(err)
47 }
48
49 return nil
50}
51
52func askPassword(i commandInput, value interface{}, isUpdate bool) error {
53 isRequired := isInputRequired(i, isUpdate)

Callers 1

askIntFlagFunction · 0.85

Calls 7

TextInputFunction · 0.92
AskOneFunction · 0.92
isInputRequiredFunction · 0.85
handleInputErrorFunction · 0.85
GetNameMethod · 0.65
GetLabelMethod · 0.65
GetHelpMethod · 0.65

Tested by

no test coverage detected