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

Method Select

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

generic prompts from go-gh Select prompts the user to select an option from a list of options.

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

Source from the content-addressed store, hash-verified

19
20 // Select prompts the user to select an option from a list of options.
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,

Callers 3

SelectMethod · 0.65
TestAccessiblePrompterFunction · 0.65
TestSurveyPrompterFunction · 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 2

TestAccessiblePrompterFunction · 0.52
TestSurveyPrompterFunction · 0.52