Prompts Prompt is a simple text input.
(prompt, name string, validators ...PromptValidator)
| 50 | |
| 51 | // Prompt is a simple text input. |
| 52 | func 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. |
| 57 | func PromptDefault(prompt, name, preValue string, validators ...PromptValidator) (string, error) { |
no test coverage detected