feat(commander): add GPT prompt boundary lint
This commit is contained in:
@@ -257,6 +257,10 @@ async function main(): Promise<void> {
|
||||
|
||||
if (top === "commander") {
|
||||
const result = runCommanderCommand(args.slice(1));
|
||||
if (sub === "prompt-lint") {
|
||||
emitJson(commandName, result, true);
|
||||
return;
|
||||
}
|
||||
const ok = (result as { ok?: unknown }).ok !== false;
|
||||
emitJson(commandName, result, ok);
|
||||
if (!ok) process.exitCode = 1;
|
||||
|
||||
Reference in New Issue
Block a user