mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-28 01:21:36 +00:00
refactor(cli): separate json payload output from logging
This commit is contained in:
@@ -14,7 +14,7 @@ function fail(message: string): never {
|
||||
}
|
||||
|
||||
function printJson(value: unknown): void {
|
||||
defaultRuntime.log(JSON.stringify(value, null, 2));
|
||||
defaultRuntime.writeJson(value);
|
||||
}
|
||||
|
||||
export function registerMcpCli(program: Command) {
|
||||
|
||||
Reference in New Issue
Block a user