feat(cli): add text ingest command

This commit is contained in:
Andrey Avtomonov 2026-05-13 19:23:58 +02:00
parent 754e4a9039
commit d9abaa4c9f
8 changed files with 850 additions and 11 deletions

View file

@ -312,6 +312,10 @@ export function buildKtxProgram(options: BuildKtxProgramOptions): Command {
registerIngestCommands(program, context, {
runIngestWithProgress: async (ingestArgs, ingestIo, ingestDeps, defaultRunIngest) =>
await (ingestDeps.ingest ?? defaultRunIngest)(ingestArgs, ingestIo),
runTextIngest: async (textIngestArgs, ingestIo, ingestDeps) => {
const { runKtxTextIngest } = await import('./text-ingest.js');
return await (ingestDeps.textIngest ?? runKtxTextIngest)(textIngestArgs, ingestIo);
},
});
registerScanCommands(program, context);
registerWikiCommands(program, context);