feat: add decision center document contract
This commit is contained in:
+4
-1
@@ -250,7 +250,10 @@ async function main(): Promise<void> {
|
||||
}
|
||||
|
||||
if (top === "decision" || top === "decision-center") {
|
||||
emitJson(commandName, await runDecisionCenterCommand(config, args.slice(1)));
|
||||
const result = await runDecisionCenterCommand(config, args.slice(1));
|
||||
const ok = resultOk(result);
|
||||
emitJson(commandName, result, ok);
|
||||
if (!ok) process.exitCode = 1;
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user