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

Function AskExportConfig

pkg/cmd/shared/handler/indices/config.go:42–61  ·  view source on GitHub ↗
(opts *ExportOptions)

Source from the content-addressed store, hash-verified

40}
41
42func AskExportConfig(opts *ExportOptions) error {
43 err := ask.AskMultiSelectQuestion(
44 "scope (comma separated):",
45 opts.Scope,
46 &opts.Scope,
47 []string{"settings", "synonyms", "rules"},
48 survey.WithValidator(survey.Required),
49 )
50 if err != nil {
51 return err
52 }
53
54 err = ask.AskInputQuestion(
55 "directory (default to current folder)", &opts.Directory, opts.Directory)
56 if err != nil {
57 return err
58 }
59
60 return nil
61}
62
63// Matching Algolia Dashboard file naming
64// https://github.com/algolia/AlgoliaWeb/blob/develop/_client/src/routes/explorer/components/Explorer/IndexExportSettingsModal.tsx#L88

Callers

nothing calls this directly

Calls 2

AskMultiSelectQuestionFunction · 0.92
AskInputQuestionFunction · 0.92

Tested by

no test coverage detected