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

Function ValidateExportConfigFlags

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

Source from the content-addressed store, hash-verified

31}
32
33func ValidateExportConfigFlags(opts ExportOptions) error {
34 cs := opts.IO.ColorScheme()
35
36 if !utils.Contains(opts.Indices, opts.Index) {
37 return fmt.Errorf("%s Index '%s' doesn't exist", cs.FailureIcon(), opts.Index)
38 }
39 return nil
40}
41
42func AskExportConfig(opts *ExportOptions) error {
43 err := ask.AskMultiSelectQuestion(

Callers 1

Calls 4

ContainsFunction · 0.92
ColorSchemeMethod · 0.80
FailureIconMethod · 0.80
ErrorfMethod · 0.65

Tested by 1