Skip to content

Conversation

@ritvikos
Copy link
Contributor

@ritvikos ritvikos commented Aug 28, 2025

Adds a '--export ' flag that determines the export format from the file extension (.json, .csv, .md, .adoc, .org), can be specified multiple times to export results to different file formats simultaneously. Defaults to JSON if the extension is unrecognized. Closes #691

@ritvikos ritvikos marked this pull request as draft December 15, 2025 08:32
@ritvikos ritvikos closed this Jan 23, 2026
Adds a unified '--export <FILE>' flag that determines
the export format from the file extension
(.json, .csv, .md, .adoc, .org). Closes sharkdp#691

The flag can be specified multiple times to export
results to different files and formats simultaneously.
Defaults to 'JSON' if the extension isn't supported.

For example:
`hyperfine "ps aux" --export output.{json, csv, md, adoc, org}`
`hyperfine "ps aux" --export output.json --export output.md`

Signed-off-by: Ritvik Gupta <ritvikfoss@gmail.com>
@ritvikos ritvikos reopened this Jan 23, 2026
@ritvikos ritvikos changed the title feat: add unified '--export' flag feat: add unified '--export' flag to export multiple file formats Jan 23, 2026
@ritvikos ritvikos marked this pull request as ready for review January 23, 2026 04:50
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.

A shorter --export option

1 participant