MCPcopy Index your code
hub / github.com/coder/coder / filteredOptions

Method filteredOptions

cli/cliui/select.go:293–304  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

291}
292
293func (m selectModel) filteredOptions() []string {
294 options := []string{}
295 for _, o := range m.options {
296 filter := strings.ToLower(m.search.Value())
297 option := strings.ToLower(o)
298
299 if strings.Contains(option, filter) {
300 options = append(options, o)
301 }
302 }
303 return options
304}
305
306type RichMultiSelectOptions struct {
307 Message string

Callers 2

UpdateMethod · 0.95
viewableOptionsMethod · 0.95

Calls 2

ValueMethod · 0.45
ContainsMethod · 0.45

Tested by

no test coverage detected