MCPcopy Index your code
hub / github.com/docker/cli / IsPluginCommand

Function IsPluginCommand

cli-plugins/manager/manager.go:230–232  ·  view source on GitHub ↗

IsPluginCommand checks if the given cmd is a plugin-stub.

(cmd *cobra.Command)

Source from the content-addressed store, hash-verified

228
229// IsPluginCommand checks if the given cmd is a plugin-stub.
230func IsPluginCommand(cmd *cobra.Command) bool {
231 return cmd.Annotations[metadata.CommandAnnotationPlugin] == "true"
232}

Callers 1

newPluginFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…