(opts *ExportOptions)
| 40 | } |
| 41 | |
| 42 | func 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 |
nothing calls this directly
no test coverage detected