Skip to content
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: move "config" flag to cli/flags/ClientOptions.InstallFlags() #4388

Merged
merged 1 commit into from
Jun 28, 2023

Conversation

thaJeztah
Copy link
Member

This flag was kept separate from the other flags, because at the time, the CLI code and Daemon code still used the same codebase, and shared some parts. This option only applied to the docker CLI, and thus was kept separate when migrating to Cobra in moby/moby@0452ff5 (moby/moby#25354)

Now that this code is only used for the CLI (and plugins), we can move this flag together with the other flags.

- 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)

@thaJeztah thaJeztah added status/2-code-review kind/refactor PR's that refactor, or clean-up code labels Jun 28, 2023
@thaJeztah thaJeztah added this to the 25.0.0 milestone Jun 28, 2023
@codecov-commenter
Copy link

Codecov Report

Merging #4388 (90bc986) into master (3403f27) will increase coverage by 0.00%.
The diff coverage is 80.00%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #4388   +/-   ##
=======================================
  Coverage   59.36%   59.37%           
=======================================
  Files         288      288           
  Lines       24748    24747    -1     
=======================================
+ Hits        14692    14693    +1     
+ Misses       9172     9170    -2     
  Partials      884      884           

This flag was kept separate from the other flags, because at the time, the
CLI code and Daemon code still used the same codebase, and shared some parts.
This option only applied to the `docker` CLI, and thus was kept separate when
migrating to Cobra in moby/moby@0452ff5

Now that this code is only used for the CLI (and plugins), we can move this
flag together with the other flags.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Copy link
Member

@neersighted neersighted left a comment

Choose a reason for hiding this comment

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

LGTM

@thaJeztah thaJeztah merged commit d2b376d into docker:master Jun 28, 2023
74 checks passed
@thaJeztah thaJeztah deleted the move_config_flag branch June 28, 2023 14:26
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 status/2-code-review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants