Skip to content

docs(sdk): document the EventProcessor API that actually exists - #14131

Merged
glours merged 1 commit into
docker:mainfrom
ndeloof:a3-sdk-docs-eventprocessor
Aug 27, 2026
Merged

docs(sdk): document the EventProcessor API that actually exists#14131
glours merged 1 commit into
docker:mainfrom
ndeloof:a3-sdk-docs-eventprocessor

Conversation

@ndeloof

@ndeloof ndeloof commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

docs/sdk.md documented a progress package that does not exist (progress.NewTTYWriter/NewPlainWriter/…, WithEventProcessor(progress.EventProcessor)). It now points at api.EventProcessor and the real renderers in cmd/display.

Epic #14074, section A — split out of #14075 for focused review.

🤖 Generated with Claude Code

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 docker-agent left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

codecov Bot commented Aug 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@glours glours left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@glours
glours merged commit 7b63e4f into docker:main Aug 27, 2026
52 of 54 checks 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.

3 participants