MCPcopy
hub / github.com/cli/cli / Input

Method Input

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

Source from the content-addressed store, hash-verified

37
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)

Callers 15

createRunFunction · 0.65
promptEditFunction · 0.65
createRunFunction · 0.65
LoginFunction · 0.65
createFromLocalFunction · 0.65
interactiveRepoInfoFunction · 0.65
renameRunFunction · 0.65
interactiveRepoEditFunction · 0.65
getBodyFunction · 0.65
promptForSkillOriginFunction · 0.65
resolveRepoArgFunction · 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