mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-27 09:52:25 +00:00
refactor(cli): separate json payload output from logging
This commit is contained in:
@@ -414,7 +414,7 @@ export async function runMemoryStatus(opts: MemoryCommandOptions) {
|
||||
}
|
||||
|
||||
if (opts.json) {
|
||||
defaultRuntime.log(JSON.stringify(allResults, null, 2));
|
||||
defaultRuntime.writeJson(allResults);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -723,7 +723,7 @@ export async function runMemorySearch(
|
||||
return;
|
||||
}
|
||||
if (opts.json) {
|
||||
defaultRuntime.log(JSON.stringify({ results }, null, 2));
|
||||
defaultRuntime.writeJson({ results });
|
||||
return;
|
||||
}
|
||||
if (results.length === 0) {
|
||||
|
||||
Reference in New Issue
Block a user