( message string, storage *[]string, defaultValues []string, opts ...survey.AskOpt, )
| 17 | } |
| 18 | |
| 19 | func AskCommaSeparatedInputQuestion( |
| 20 | message string, |
| 21 | storage *[]string, |
| 22 | defaultValues []string, |
| 23 | opts ...survey.AskOpt, |
| 24 | ) error { |
| 25 | stringSlice := StringSlice{} |
| 26 | err := survey.AskOne( |
| 27 | &survey.Input{ |
| 28 | Message: message, |
| 29 | Default: utils.SliceToString(defaultValues), |
| 30 | }, |
| 31 | &stringSlice, |
| 32 | ) |
| 33 | *storage = stringSlice.value |
| 34 | |
| 35 | return err |
| 36 | } |
| 37 | |
| 38 | func AskMultiSelectQuestion( |
| 39 | message string, |
no test coverage detected