fix: render web observe status as table
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user