docs(sdk): document the EventProcessor API that actually exists - #14131
Merged
Conversation
sdk.md advertised a 'progress' package (progress.NewTTYWriter, NewPlainWriter, NewJSONWriter, NewQuietWriter) that does not exist in the repository, and typed WithEventProcessor against it. Anyone following the doc writes code that cannot compile — or recreates the phantom package. The section now points at the real surface: api.EventProcessor, the silent-by-default behavior when no processor is configured, and the CLI's actual renderers in cmd/display (Full, Plain, JSON, Quiet) with their real signatures. Part of docker#14074 (A: the code misdescribes its own structure). Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
docker-agent
left a comment
Contributor
There was a problem hiding this comment.
Assessment: 🟢 APPROVE
The PR correctly removes references to a non-existent progress package and replaces them with accurate documentation of the real api.EventProcessor interface and cmd/display renderers. All four documented renderer functions (Full, Plain, JSON, Quiet) were verified to exist with matching signatures. The import path github.com/docker/compose/v5/cmd/display is correct, and the statement about silent event discarding when no WithEventProcessor is passed is confirmed by the actual default in pkg/compose/compose.go.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
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.
docs/sdk.mddocumented aprogresspackage that does not exist (progress.NewTTYWriter/NewPlainWriter/…,WithEventProcessor(progress.EventProcessor)). It now points atapi.EventProcessorand the real renderers incmd/display.Epic #14074, section A — split out of #14075 for focused review.
🤖 Generated with Claude Code