Function
AskInputQuestionWithSuggestion
(
message string,
storage *string,
defaultValue string,
suggest func(toComplete string) []string,
opts ...survey.AskOpt,
)
Source from the content-addressed store, hash-verified
| 81 | } |
| 82 | |
| 83 | func AskInputQuestionWithSuggestion( |
| 84 | message string, |
| 85 | storage *string, |
| 86 | defaultValue string, |
| 87 | suggest func(toComplete string) []string, |
| 88 | opts ...survey.AskOpt, |
| 89 | ) error { |
| 90 | return survey.AskOne(&survey.Input{ |
| 91 | Message: message, |
| 92 | Default: defaultValue, |
| 93 | Suggest: suggest, |
| 94 | }, storage, opts...) |
| 95 | } |
| 96 | |
| 97 | func AskBooleanQuestion( |
| 98 | message string, |
Tested by
no test coverage detected