MCPcopy Create free account
hub / github.com/algolia/cli / AskCommaSeparatedInputQuestion

Function AskCommaSeparatedInputQuestion

pkg/ask/ask.go:19–36  ·  view source on GitHub ↗
(
	message string,
	storage *[]string,
	defaultValues []string,
	opts ...survey.AskOpt,
)

Source from the content-addressed store, hash-verified

17}
18
19func 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
38func AskMultiSelectQuestion(
39 message string,

Calls 1

SliceToStringFunction · 0.92

Tested by

no test coverage detected