(prompt string, defaults []string, options []string)
| 98 | } |
| 99 | |
| 100 | func (p *huhPrompter) MultiSelect(prompt string, defaults []string, options []string) ([]int, error) { |
| 101 | form, result := p.buildMultiSelectForm(prompt, defaults, options) |
| 102 | err := p.runForm(form) |
| 103 | if err != nil { |
| 104 | return nil, err |
| 105 | } |
| 106 | return *result, nil |
| 107 | } |
| 108 | |
| 109 | func (p *huhPrompter) buildMultiSelectWithSearchForm(prompt, searchPrompt string, defaultValues, persistentValues []string, searchFunc func(string) MultiSelectSearchResult) (*huh.Form, *multiSelectSearchField) { |
| 110 | field := newMultiSelectSearchField(prompt, searchPrompt, defaultValues, persistentValues, searchFunc) |
nothing calls this directly
no test coverage detected