Skip to content

Commit c5b5795

Browse files
authored
fix: process.stdout.write instead of console.log for export cmd (#3049)
1 parent 3ed4f10 commit c5b5795

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/opencode/src/cli/cmd/export.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ export const ExportCommand = cmd({
6666
})),
6767
}
6868

69-
console.log(JSON.stringify(exportData, null, 2))
69+
process.stdout.write(JSON.stringify(exportData, null, 2))
70+
process.stdout.write("\n")
7071
} catch (error) {
7172
UI.error(`Session not found: ${sessionID!}`)
7273
process.exit(1)

0 commit comments

Comments
 (0)