Skip to content

cli/outputflags: fix another output heuristic bug - #7289

Merged
nwt merged 1 commit into
mainfrom
super-db-terminal
Sep 8, 2026
Merged

cli/outputflags: fix another output heuristic bug#7289
nwt merged 1 commit into
mainfrom
super-db-terminal

Conversation

@nwt

@nwt nwt commented Sep 8, 2026

Copy link
Copy Markdown
Member

"super db -c ..." should write SUP to the terminal but instead writes its default format, BSUP, because the heuristic in outputflags.SetFormatFlags assumes CSUP is the only binary format. Change the heuristic to be aware of our other binary formats.

This doesn't include a test because we don't have a straighforward way to provide access to a terminal.

Fixes #7287.

I also verified that #7075 remains fixed.

"super db -c ..." should write SUP to the terminal but instead writes
its default format, BSUP, because the heuristic in
outputflags.SetFormatFlags assumes CSUP is the only binary format.
Change the heuristic to be aware of our other binary formats.

This doesn't include a test because we don't have a straighforward way
to provide access to a terminal.
@nwt
nwt requested a review from a team September 8, 2026 18:05
@nwt
nwt merged commit 4f07816 into main Sep 8, 2026
2 checks passed
@nwt
nwt deleted the super-db-terminal branch September 8, 2026 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"super db -c" no longer prints SUP on terminal by default

2 participants