MCPcopy Create free account
hub / github.com/git-bug/git-bug / Prompt

Function Prompt

commands/input/prompt.go:52–54  ·  view source on GitHub ↗

Prompts Prompt is a simple text input.

(prompt, name string, validators ...PromptValidator)

Source from the content-addressed store, hash-verified

50
51// Prompt is a simple text input.
52func Prompt(prompt, name string, validators ...PromptValidator) (string, error) {
53 return PromptDefault(prompt, name, "", validators...)
54}
55
56// PromptDefault is a simple text input with a default value.
57func PromptDefault(prompt, name, preValue string, validators ...PromptValidator) (string, error) {

Callers 8

promptTokenFunction · 0.92
promptLoginFunction · 0.92
ConfigureMethod · 0.92
ConfigureMethod · 0.92
promptTokenFunction · 0.92
ConfigureMethod · 0.92
runUserNewFunction · 0.92
PromptURLWithRemoteFunction · 0.85

Calls 1

PromptDefaultFunction · 0.85

Tested by

no test coverage detected