Skip to content

Conversation

@Benehiko
Copy link
Member

@Benehiko Benehiko commented Nov 3, 2025

- What I did
Added a new metadata field so that plugins can mark themselves as hidden. This will hide the plugin from the top-level docker help command as well as shell completion output.

- How I did it

- How to verify it

- Human readable description for the release notes

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

@Benehiko Benehiko requested review from Copilot and thaJeztah November 3, 2025 08:53
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds functionality allowing plugins to mark themselves as hidden, preventing them from appearing in Docker's help output and shell completion.

Key Changes:

  • Added a Hidden boolean field to the plugin metadata structure
  • Modified plugin command creation to respect the Hidden field
  • Updated the management subcommands filter to skip hidden plugins

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
cli-plugins/metadata/metadata.go Adds Hidden field to plugin metadata
cli-plugins/manager/cobra.go Sets Hidden property when creating plugin command stubs
cli/cobra.go Filters out hidden plugins from management subcommands list
cli/cobra_test.go Adds test coverage for hidden plugin filtering behavior

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@codecov-commenter
Copy link

codecov-commenter commented Nov 3, 2025

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
cli-plugins/manager/cobra.go 0.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

Signed-off-by: Alano Terblanche <[email protected]>
Copy link
Member

@thaJeztah thaJeztah 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 30d597d into docker:master Nov 3, 2025
91 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants