MCPcopy Index your code
hub / github.com/cli/cli / MultiSelect

Method MultiSelect

internal/prompter/prompter.go:23–23  ·  view source on GitHub ↗

MultiSelect prompts the user to select one or more options from a list of options.

(prompt string, defaults []string, options []string)

Source from the content-addressed store, hash-verified

21 Select(prompt string, defaultValue string, options []string) (int, error)
22 // MultiSelect prompts the user to select one or more options from a list of options.
23 MultiSelect(prompt string, defaults []string, options []string) ([]int, error)
24 // MultiSelectWithSearch is MultiSelect with an added search option to the list,
25 // prompting the user for text input to filter the options via the searchFunc.
26 // Items selected in the search are persisted in the list after subsequent searches.

Callers 3

MultiSelectMethod · 0.65
multiSelectWithSearchFunction · 0.65
TestAccessiblePrompterFunction · 0.65

Implementers 4

PrompterMockinternal/prompter/prompter_mock.go
huhPrompterinternal/prompter/huh_prompter.go
accessiblePrompterinternal/prompter/prompter.go
surveyPrompterinternal/prompter/prompter.go

Calls

no outgoing calls

Tested by 1

TestAccessiblePrompterFunction · 0.52