Make cli output awaitable to prevent truncating the result
This commit is contained in:
parent
7fc4e87113
commit
67f35363d8
1 changed files with 9 additions and 1 deletions
|
|
@ -19,6 +19,7 @@ import {
|
|||
} from "./client/index.js";
|
||||
import { handleError } from "./error-handler.js";
|
||||
import { createTransport, TransportOptions } from "./transport.js";
|
||||
import { awaitableLog } from "./utils/awaitable-log.js";
|
||||
|
||||
type Args = {
|
||||
target: string[];
|
||||
|
|
@ -150,7 +151,7 @@ async function callMethod(args: Args): Promise<void> {
|
|||
);
|
||||
}
|
||||
|
||||
console.log(JSON.stringify(result, null, 2));
|
||||
await awaitableLog(JSON.stringify(result, null, 2));
|
||||
} finally {
|
||||
try {
|
||||
await disconnect(transport);
|
||||
|
|
|
|||
Loading…
Reference in a new issue