fix: render web observe status as table

This commit is contained in:
Codex
2026-06-21 15:52:15 +00:00
parent a4a81c0c2c
commit 83fd2ce3b0
4 changed files with 114 additions and 5 deletions
+5
View File
@@ -321,6 +321,11 @@ async function main(): Promise<void> {
const { runHwlabNodeCommand } = await import("./src/hwlab-node");
const result = await runHwlabNodeCommand(readConfig(), args.slice(2));
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;