mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-11 17:21:13 +00:00
refactor(cli): separate json payload output from logging
This commit is contained in:
@@ -30,7 +30,7 @@ export async function runBrowserResizeWithOutput(params: {
|
||||
);
|
||||
|
||||
if (params.parent?.json) {
|
||||
defaultRuntime.log(JSON.stringify(result, null, 2));
|
||||
defaultRuntime.writeJson(result);
|
||||
return;
|
||||
}
|
||||
defaultRuntime.log(params.successMessage);
|
||||
|
||||
Reference in New Issue
Block a user