MCPcopy
hub / github.com/cli/cli / Select

Method Select

internal/prompter/prompter.go:353–355  ·  view source on GitHub ↗
(prompt, defaultValue string, options []string)

Source from the content-addressed store, hash-verified

351}
352
353func (p *surveyPrompter) Select(prompt, defaultValue string, options []string) (int, error) {
354 return p.prompter.Select(prompt, defaultValue, options)
355}
356
357func (p *surveyPrompter) MultiSelect(prompt string, defaultValues, options []string) ([]int, error) {
358 return p.prompter.MultiSelect(prompt, defaultValues, options)

Callers

nothing calls this directly

Calls 1

SelectMethod · 0.65

Tested by

no test coverage detected