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

Function AskMultiSelectQuestion

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

Source from the content-addressed store, hash-verified

36}
37
38func AskMultiSelectQuestion(
39 message string,
40 defaultValues []string,
41 storage *[]string,
42 options []string,
43 opts ...survey.AskOpt,
44) error {
45 err := survey.AskOne(
46 &survey.MultiSelect{
47 Message: message,
48 Default: defaultValues,
49 Options: options,
50 },
51 storage,
52 )
53
54 return err
55}
56
57func AskSelectQuestion(
58 message string,

Callers 2

AskExportConfigFunction · 0.92
AskImportConfigFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected