fix: render gh preflight as table

This commit is contained in:
Codex
2026-06-21 15:44:08 +00:00
parent 92cd1cadf4
commit 1be65819d7
2 changed files with 73 additions and 1 deletions
+5
View File
@@ -290,6 +290,11 @@ async function main(): Promise<void> {
if (top === "gh") {
const result = await runGhCommand(args.slice(1));
const ok = (result as { ok?: unknown }).ok !== false;
if (isRenderedCliResult(result)) {
emitText(result.renderedText, result.command || commandName);
if (!ok) process.exitCode = 1;
return;
}
emitJson(commandName, result, ok);
if (!ok) process.exitCode = 1;
return;