Skip to content

Commit e941311

Browse files
committed
Route commander output to stdout
1 parent 359ec61 commit e941311

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cli/src/index.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,12 @@ type ParsedArgs = {
8787
function parseArgs(): ParsedArgs {
8888
const program = new Command()
8989

90+
// Send all commander output (including errors) to stdout so it shows up in the TUI buffer
91+
program.configureOutput({
92+
writeOut: (str: string) => process.stdout.write(str),
93+
writeErr: (str: string) => process.stdout.write(str),
94+
})
95+
9096
program
9197
.name('codebuff')
9298
.description('Codebuff CLI - AI-powered coding assistant')

0 commit comments

Comments
 (0)