MCPcopy Index your code
hub / github.com/cameri/nostream / runImport

Function runImport

src/cli/commands/import.ts:8–20  ·  view source on GitHub ↗
(options: ImportOptions, rawArgs: string[])

Source from the content-addressed store, hash-verified

6}
7
8export 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}

Callers 2

index.tsFile · 0.90
runManageMenuFunction · 0.90

Calls 1

runImportEventsFunction · 0.90

Tested by

no test coverage detected