mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-21 22:21:33 +00:00
refactor(cli): separate json payload output from logging
This commit is contained in:
@@ -80,7 +80,7 @@ export function registerPairingCli(program: Command) {
|
||||
? await listChannelPairingRequests(channel, process.env, accountId)
|
||||
: await listChannelPairingRequests(channel);
|
||||
if (opts.json) {
|
||||
defaultRuntime.log(JSON.stringify({ channel, requests }, null, 2));
|
||||
defaultRuntime.writeJson({ channel, requests });
|
||||
return;
|
||||
}
|
||||
if (requests.length === 0) {
|
||||
|
||||
Reference in New Issue
Block a user