(opts ExportOptions)
| 31 | } |
| 32 | |
| 33 | func 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 | |
| 42 | func AskExportConfig(opts *ExportOptions) error { |
| 43 | err := ask.AskMultiSelectQuestion( |