(prompt, searchPrompt string, defaultValues, persistentValues []string, searchFunc func(string) MultiSelectSearchResult)
| 113 | } |
| 114 | |
| 115 | func (p *huhPrompter) MultiSelectWithSearch(prompt, searchPrompt string, defaultValues, persistentValues []string, searchFunc func(string) MultiSelectSearchResult) ([]string, error) { |
| 116 | form, field := p.buildMultiSelectWithSearchForm(prompt, searchPrompt, defaultValues, persistentValues, searchFunc) |
| 117 | err := p.runForm(form) |
| 118 | if err != nil { |
| 119 | return nil, err |
| 120 | } |
| 121 | return field.selectedKeys(), nil |
| 122 | } |
| 123 | |
| 124 | func (p *huhPrompter) buildInputForm(prompt, defaultValue string) (*huh.Form, *string) { |
| 125 | result := defaultValue |
nothing calls this directly
no test coverage detected