Skip to content

[28.x backport] cli: deprecate VisitAll, DisableFlagsInUseLine utilities, remove HasCompletionArg #6276

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 18, 2025

Conversation

thaJeztah
Copy link
Member


cli: remove HasCompletionArg utility

It was only used in a single place and has no external consumers.
Move it to where it's used to keep things together.

cli: deprecate VisitAll, DisableFlagsInUseLine utilities

These utilities were only used internally; create a local copy
where used, and deprecate the ones in cli.

cmd/docker: fix some minor linting issues

- Human readable description for the release notes

Go SDK: cli: deprecate `VisitAll`, `DisableFlagsInUseLine` utilities. These utilities were only used internally and will be removed in the next release.
Go SDK: cli: remove `HasCompletionArg` utility. This utility was only used internally.

- A picture of a cute animal (not mandatory but encouraged)

It was only used in a single place and has no external consumers.
Move it to where it's used to keep things together.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
(cherry picked from commit 5a99022)
Signed-off-by: Sebastiaan van Stijn <[email protected]>
These utilities were only used internally; create a local copy
where used, and deprecate the ones in cli.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
(cherry picked from commit 6bd8a4b)
Signed-off-by: Sebastiaan van Stijn <[email protected]>
Signed-off-by: Sebastiaan van Stijn <[email protected]>
(cherry picked from commit 5a38118)
Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah thaJeztah added this to the 28.4.0 milestone Aug 15, 2025
@thaJeztah thaJeztah added impact/deprecation status/2-code-review kind/refactor PR's that refactor, or clean-up code area/go-sdk Changes affecting the Go SDK impact/go-sdk Noteworthy (compatibility changes) in the Go SDK labels Aug 15, 2025
@codecov-commenter
Copy link

Codecov Report

❌ Patch coverage is 54.34783% with 21 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
cmd/docker/docker.go 56.25% 14 Missing ⚠️
cli/cobra.go 0.00% 4 Missing ⚠️
cli-plugins/plugin/plugin.go 70.00% 3 Missing ⚠️

📢 Thoughts on this report? Let us know!

@thaJeztah thaJeztah marked this pull request as ready for review August 15, 2025 17:21
@thaJeztah thaJeztah merged commit bcc479b into docker:28.x Aug 18, 2025
118 of 119 checks passed
@thaJeztah thaJeztah deleted the 28.x_backport_cli_internalize_utils branch August 18, 2025 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/go-sdk Changes affecting the Go SDK impact/deprecation impact/go-sdk Noteworthy (compatibility changes) in the Go SDK kind/refactor PR's that refactor, or clean-up code status/2-code-review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants