Skip to content

cmd/docker-trust: Inline some cli dependencies - #7412

Merged
vvoland merged 3 commits into
docker:masterfrom
vvoland:trust-clean
Oct 19, 2026
Merged

vvoland merged 3 commits into
docker:masterfrom
vvoland:trust-clean

Conversation

@vvoland

@vvoland vvoland commented Oct 19, 2026

Copy link
Copy Markdown
Collaborator

cmd/docker-trust: Inline the JSON stream display helper

The plugin only needed progress display and an auxiliary callback. Inlined that use while preserving cancellation and terminal handling.

cmd/docker-trust: Remove unused command registration

Both entry points use NewRootCmd, which adds subcommands directly. Removed the unused registry registration and constructor.

cmd/docker-trust: Use standard regexps for name validation

The plugin only used lazyregexp for two small, fixed name patterns. Replaced it with regexp.MustCompile without changing validation.

The plugin only needed progress display and an auxiliary callback.
Inlined that use while preserving cancellation and terminal handling.

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
Both entry points use NewRootCmd, which adds subcommands directly.
Removed the unused registry registration and constructor.

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
The plugin only used lazyregexp for two small, fixed name patterns.
Replaced it with regexp.MustCompile without changing validation.

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
@vvoland vvoland added this to the 29.10.0 milestone Oct 19, 2026
@vvoland vvoland self-assigned this Oct 19, 2026
@vvoland vvoland added the kind/refactor PR's that refactor, or clean-up code label Oct 19, 2026
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@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

@vvoland
vvoland requested a review from thaJeztah October 19, 2026 12:00

@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

@vvoland
vvoland merged commit f522fff into docker:master Oct 19, 2026
106 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/refactor PR's that refactor, or clean-up code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants