mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-28 02:12:07 +00:00
refactor(cli): separate json payload output from logging
This commit is contained in:
@@ -28,7 +28,7 @@ async function runSystemGatewayCommand(
|
||||
try {
|
||||
const result = await action();
|
||||
if (opts.json || successText === undefined) {
|
||||
defaultRuntime.log(JSON.stringify(result, null, 2));
|
||||
defaultRuntime.writeJson(result);
|
||||
} else {
|
||||
defaultRuntime.log(successText);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user