mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-28 18:33:37 +00:00
refactor(cli): separate json payload output from logging
This commit is contained in:
@@ -138,7 +138,7 @@ type PrintResultOptions = UpdateCommandOptions & {
|
||||
|
||||
export function printResult(result: UpdateRunResult, opts: PrintResultOptions): void {
|
||||
if (opts.json) {
|
||||
defaultRuntime.log(JSON.stringify(result, null, 2));
|
||||
defaultRuntime.writeJson(result);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user