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

Method Input

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

Input prompts the user to enter a string value.

(prompt string, defaultValue string)

Source from the content-addressed store, hash-verified

32 MultiSelectWithSearch(prompt, searchPrompt string, defaults []string, persistentOptions []string, searchFunc func(string) MultiSelectSearchResult) ([]string, error)
33 // Input prompts the user to enter a string value.
34 Input(prompt string, defaultValue string) (string, error)
35 // Password prompts the user to enter a password.
36 Password(prompt string) (string, error)
37 // Confirm prompts the user to confirm an action.

Callers 3

multiSelectWithSearchFunction · 0.65
InputMethod · 0.65
TestAccessiblePrompterFunction · 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 1

TestAccessiblePrompterFunction · 0.52