diff options
| author | Haris Gušić <[email protected]> | 2025-10-09 07:46:19 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-10-09 00:46:19 -0500 |
| commit | c5b5795636c16574c1b9d7bc8529c77a2e41db08 (patch) | |
| tree | 8313f71a0bae7cd5b8ea1359c1ba1b12c851ddd3 | |
| parent | 3ed4f1078fd708847b3e36b73d2ac7615be478df (diff) | |
| download | opencode-c5b5795636c16574c1b9d7bc8529c77a2e41db08.tar.gz opencode-c5b5795636c16574c1b9d7bc8529c77a2e41db08.zip | |
fix: process.stdout.write instead of console.log for export cmd (#3049)
| -rw-r--r-- | packages/opencode/src/cli/cmd/export.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/opencode/src/cli/cmd/export.ts b/packages/opencode/src/cli/cmd/export.ts index 996522b5a..c8825c83d 100644 --- a/packages/opencode/src/cli/cmd/export.ts +++ b/packages/opencode/src/cli/cmd/export.ts @@ -66,7 +66,8 @@ export const ExportCommand = cmd({ })), } - console.log(JSON.stringify(exportData, null, 2)) + process.stdout.write(JSON.stringify(exportData, null, 2)) + process.stdout.write("\n") } catch (error) { UI.error(`Session not found: ${sessionID!}`) process.exit(1) |
