Skip to content

Commit 8a34416

Browse files
committed
Route commander output to stdout
1 parent 8687098 commit 8a34416

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
@@ -86,6 +86,12 @@ type ParsedArgs = {
8686
function parseArgs(): ParsedArgs {
8787
const program = new Command()
8888

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

0 commit comments

Comments
 (0)