fix: process.stdout.write instead of console.log for export cmd (#3049)

This commit is contained in:
Haris Gušić 2025-10-09 07:46:19 +02:00 committed by GitHub
commit c5b5795636
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)