This commit is contained in:
Oleg Maslov
2026-09-02 10:14:22 +02:00
parent 0c3e2ead3b
commit b20b138fe4
771 changed files with 161561 additions and 9027 deletions

View File

@@ -23,7 +23,7 @@
*/
import { parseArgs } from 'node:util';
import { dispatch, type DispatchArgs } from './dispatch.js';
import type { DispatchArgs } from './dispatch.js';
const HELP_FLAGS = new Set(['--help', '-h']);
@@ -319,7 +319,9 @@ async function main(): Promise<void> {
}
try {
const output = await dispatch(args);
const output = args.subcommand === 'hook-call'
? (await import('./commands/hook-call.js')).runHookCallCommand(args)
: await (await import('./dispatch.js')).dispatch(args);
if (output !== undefined) process.stdout.write(output);
if (output && !output.endsWith('\n')) process.stdout.write('\n');
process.exit(0);