(i commandInput, value *int, defaultValue *string, isUpdate bool)
| 39 | } |
| 40 | |
| 41 | func 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 | |
| 52 | func askPassword(i commandInput, value interface{}, isUpdate bool) error { |
| 53 | isRequired := isInputRequired(i, isUpdate) |
no test coverage detected