Skip to content

Fix YAML formatter buffering#63

Open
fallintoplace wants to merge 1 commit into
anthropics:mainfrom
fallintoplace:fix-yaml-format-buffering
Open

Fix YAML formatter buffering#63
fallintoplace wants to merge 1 commit into
anthropics:mainfrom
fallintoplace:fix-yaml-format-buffering

Conversation

@fallintoplace

Copy link
Copy Markdown

Fixes YAML output so formatJSON returns the converted bytes instead of writing directly to Stdout.

That keeps ShowJSON and ShowJSONIterator on the same output path as the other formats, so iterator buffering and terminal line counting can see YAML content before deciding whether to page.

Tests:

  • go test ./pkg/cmd -run 'Test(StreamOutput|FormatJSON|ShowJSONIterator|ExploreFallback)$'\n- git diff --check\n- go test ./pkg/cmd (fails because the mock server is not running on localhost:4010)

@fallintoplace fallintoplace requested a review from a team as a code owner June 22, 2026 19:26
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