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

Method Select

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

Source from the content-addressed store, hash-verified

38type Prompt interface {
39 Input(prompt string, defaultValue string) (string, error)
40 Select(prompt string, defaultValue string, options []string) (int, error)
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)

Callers 15

createRunFunction · 0.65
promptEditFunction · 0.65
selectRulesetIDFunction · 0.65
createRunFunction · 0.65
switchRunFunction · 0.65
refreshRunFunction · 0.65
LoginFunction · 0.65
promptForHostnameFunction · 0.65
logoutRunFunction · 0.65
viewRunFunction · 0.65
NewOwnerMethod · 0.65
NewProjectMethod · 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