Skip to content

fix: save raw response bodies with output flag#20

Merged
kavix merged 1 commit into
kavix:mainfrom
rupayon123:fix-output-raw-body
Jun 14, 2026
Merged

fix: save raw response bodies with output flag#20
kavix merged 1 commit into
kavix:mainfrom
rupayon123:fix-output-raw-body

Conversation

@rupayon123

Copy link
Copy Markdown
Contributor

This fixes -o / --output so it saves the raw response body instead of the formatted terminal output.

It also creates parent directories before writing and keeps stdout to a short saved-file message when an output path is used.

Checks:

  • go test ./...

Closes #15

@kavix kavix self-requested a review June 14, 2026 11:19
@kavix kavix merged commit 877ee53 into kavix:main Jun 14, 2026
1 check passed
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.

Add --output / -o flag to save response body to file

2 participants