infer output format from -o flag file extension - #7331
Merged
Merged
Conversation
If the -o flag specifies an output file name with a recognized extension and the -f flag is not specified, set the output format according to the extension. Recognized extensions: * arrows * bsup * csup * csv * json * jsonl * ndjson * parquet * sup * text (line format) * tsv * txt (line format) The only code changes here are in cli/outputflags/flags.go and sio/sio.go. All other changes are to documentation or tests.
mattnibs
approved these changes
Sep 18, 2026
Member
Author
|
@philrz: Before I merge this I'd appreciate your giving it a look. |
philrz
approved these changes
Sep 18, 2026
philrz
left a comment
Contributor
There was a problem hiding this comment.
Looks good to me too. Thanks!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
If the -o flag specifies an output file name with a recognized extension and the -f flag is not specified, set the output format according to the extension.
Recognized extensions:
The only code changes here are in cli/outputflags/flags.go and sio/sio.go. All other changes are to documentation or tests.
Closes #7308.