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

Method MultiSelect

pkg/cmd/pr/shared/survey.go:43–43  ·  view source on GitHub ↗
(prompt string, defaults []string, options []string)

Source from the content-addressed store, hash-verified

41 MarkdownEditor(prompt string, defaultValue string, blankAllowed bool) (string, error)
42 Confirm(prompt string, defaultValue bool) (bool, error)
43 MultiSelect(prompt string, defaults []string, options []string) ([]int, error)
44 MultiSelectWithSearch(prompt, searchPrompt string, defaults []string, persistentOptions []string, searchFunc func(string) prompter.MultiSelectSearchResult) ([]string, error)
45}
46

Callers 5

promptEditFunction · 0.65
promptInstallFunction · 0.65
resolveHostsFunction · 0.65
runMultiSelectFunction · 0.65
MetadataSurveyFunction · 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

no test coverage detected