(options: ImportOptions, rawArgs: string[])
| 6 | } |
| 7 | |
| 8 | export const runImport = async (options: ImportOptions, rawArgs: string[]): Promise<number> => { |
| 9 | const args: string[] = [] |
| 10 | |
| 11 | if (options.file) { |
| 12 | args.push(options.file) |
| 13 | } |
| 14 | |
| 15 | if (typeof options.batchSize === 'number') { |
| 16 | args.push('--batch-size', String(options.batchSize)) |
| 17 | } |
| 18 | |
| 19 | return runImportEvents([...args, ...rawArgs]) |
| 20 | } |
no test coverage detected