feat(cli): add text ingest command (#72)

This commit is contained in:
Andrey Avtomonov 2026-05-13 19:32:49 +02:00 committed by GitHub
parent be77c3c0bb
commit d1b5936441
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 850 additions and 11 deletions

View file

@ -316,6 +316,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);