Skip to content

cli/command, cli-plugins/plugin: some cleanups in WithInitializeClient, withPluginClientConn - #6081

Merged
thaJeztah merged 3 commits into
docker:masterfrom
thaJeztah:unify_cli_opts
May 19, 2025
Merged

cli/command, cli-plugins/plugin: some cleanups in WithInitializeClient, withPluginClientConn#6081
thaJeztah merged 3 commits into
docker:masterfrom
thaJeztah:unify_cli_opts

Conversation

@thaJeztah

Copy link
Copy Markdown
Member

  • cli/command: move WithInitializeClient to other options
  • cli/command: make WithInitializeClient a wrapper for WithAPIClient
  • cli-plugins/plugin: rewrite withPluginClientConn w/ WithAPIClient
    The WithInitializeClient looks redundant altogether, so let's rewrite this function to not depend on it.

- Human readable description for the release notes

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

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
The WithInitializeClient looks redundant altogether, so let's
rewrite this function to not depend on it.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztahthaJeztah added this to the 28.2.0 milestone May 16, 2025
@thaJeztahthaJeztah added status/2-code-review kind/refactor PR's that refactor, or clean-up code labels May 16, 2025
@codecov-commenter

codecov-commenter commented May 16, 2025

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 28.57143% with 10 lines in your changes missing coverage. Please review.

Project coverage is 55.02%. Comparing base (8e5fb5b) to head (240b069).
Report is 69 commits behind head on master.

Additional details and impacted files
@@ Coverage Diff @@## master #6081 +/- ##
=======================================
Coverage 55.02% 55.02% =======================================
Files 361 361 Lines 30126 30131 +5 =======================================
+ Hits 16578 16581 +3 - Misses 12594 12595 +1 - Partials 954 955 +1 
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@thaJeztah
thaJeztah requested review from Benehiko and vvolandMay 19, 2025 07:49
@thaJeztah
thaJeztah merged commit d1857de into docker:masterMay 19, 2025
@thaJeztah
thaJeztah deleted the unify_cli_opts branch May 19, 2025 09:28
@thaJeztahthaJeztah mentioned this pull request Aug 20, 2025
8 tasks
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/refactorPR's that refactor, or clean-up codestatus/2-code-review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@thaJeztah@codecov-commenter@Benehiko@vvoland