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

Function askMultiSelect

internal/cli/input.go:63–72  ·  view source on GitHub ↗
(i commandInput, value interface{}, options ...string)

Source from the content-addressed store, hash-verified

61}
62
63func askMultiSelect(i commandInput, value interface{}, options ...string) error {
64 v := reflect.ValueOf(options)
65 if v.Kind() != reflect.Slice || v.Len() <= 0 {
66 return handleInputError(fmt.Errorf("there is not enough data to select from"))
67 }
68 if err := prompt.AskMultiSelect(i.GetLabel(), value, options...); err != nil {
69 return handleInputError(err)
70 }
71 return nil
72}
73
74func _select(i commandInput, value interface{}, options []string, defaultValue *string, isUpdate bool) error {
75 isRequired := isInputRequired(i, isUpdate)

Callers 2

pickManyFlagFunction · 0.85
PickManyMethod · 0.85

Calls 4

AskMultiSelectFunction · 0.92
handleInputErrorFunction · 0.85
ErrorfMethod · 0.80
GetLabelMethod · 0.65

Tested by

no test coverage detected