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

Function isPlugin

cli/cobra.go:214–216  ·  view source on GitHub ↗
(cmd *cobra.Command)

Source from the content-addressed store, hash-verified

212}
213
214func isPlugin(cmd *cobra.Command) bool {
215 return cmd.Annotations[metadata.CommandAnnotationPlugin] == "true"
216}
217
218func hasAliases(cmd *cobra.Command) bool {
219 return len(cmd.Aliases) > 0 || cmd.Annotations["aliases"] != ""

Callers 6

topCommandsFunction · 0.85
operationSubCommandsFunction · 0.85
decoratedNameFunction · 0.85
vendorAndVersionFunction · 0.85
allManagementSubCommandsFunction · 0.85
invalidPluginsFunction · 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…