(i commandInput, value interface{}, options ...string)
| 61 | } |
| 62 | |
| 63 | func 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 | |
| 74 | func _select(i commandInput, value interface{}, options []string, defaultValue *string, isUpdate bool) error { |
| 75 | isRequired := isInputRequired(i, isUpdate) |
no test coverage detected