core: cli: wait for script load

This commit is contained in:
undefined committed 2024-07-24 14:52:16 +08:00
1 parent 3035c4bc1b
commit 510d119069
1 file changed
+1
+1
View File
@@ -123,5 +123,6 @@ export async function load(ctx: Context) {
ctx.loader.reloadPlugin(ctx, path.resolve(scriptDir, h), {}, `hydrooj/script/${h.split('.')[0]}`);
}
await script(pending, fail, ctx);
await ctx.lifecycle.flush();
await cli();
}