Skip to content

fix(cli): require explicit stdout mode for document downloads - #6153

Open
Yzzz88 wants to merge 1 commit into
Tencent:mainfrom
Yzzz88:fix/respect-server-dash-filename
Open

Yzzz88 wants to merge 1 commit into
Tencent:mainfrom
Yzzz88:fix/respect-server-dash-filename

Conversation

@Yzzz88

@Yzzz88 Yzzz88 commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Downloading a document literally named - streamed the bytes to stdout because the filename collided with the explicit --output - sentinel. Reserve stdout behavior for the supplied flag so the default command saves the file.

Verification

go test -count=1 -run "TestDownloadTreatsSuggestedDashAsFilename|TestDownload_Out" ./cmd/doc in the CLI module.

This branch has not been deployed

No deployments
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.

1 participant