-
Notifications
You must be signed in to change notification settings - Fork 2k
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
cli/command: remove deprecated DockerCliOption, InitializeOpt #4810
Conversation
These types were deprecated in 7af509c (v25.0), in favor of CLIOption, and are no longer used. This patch removes the deprecated type-aliases, and while updating, also improves the documentation for the CLIOption type. Signed-off-by: Sebastiaan van Stijn <[email protected]>
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #4810 +/- ##
=======================================
Coverage 59.63% 59.63%
=======================================
Files 287 287
Lines 24777 24777
=======================================
Hits 14775 14775
Misses 9114 9114
Partials 888 888 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
// CLIOption applies a modification on a DockerCli. | ||
// CLIOption is a functional argument to apply options to a [DockerCli]. These | ||
// options can be passed to [NewDockerCli] to initialize a new CLI, or | ||
// applied with [DockerCli.Initialize] or [DockerCli.Apply]. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just for clarity, could It make sense to mention here that it replaces the deprecated DockerCliOption
/InitializeOpt
types?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we've done that before. We usually;
- Deprecate in 1 release, and add aliases to the new location (to give users a pointer where to look for the new thing)
- Remove in the release after.
Admitted; if we're gonna ramp up release cadence, then 1 release "deprecated' may potentially be too short. OTOH; if we move to Go modules, every major release is ... a major release, so technically "anything goes!"
These types were deprecated in 7af509c (v25.0), in favor of CLIOption, and are no longer used.
This patch removes the deprecated type-aliases, and while updating, also improves the documentation for the CLIOption type.
With this patch:
- What I did
- How I did it
- How to verify it
- Description for the changelog
- A picture of a cute animal (not mandatory but encouraged)