MCPcopy Create free account
hub / github.com/docker/cli / decoratedName

Function decoratedName

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

Source from the content-addressed store, hash-verified

309}
310
311func decoratedName(cmd *cobra.Command) string {
312 decoration := " "
313 if isPlugin(cmd) {
314 decoration = "*"
315 }
316 return cmd.Name() + decoration
317}
318
319func vendorAndVersion(cmd *cobra.Command) string {
320 if vendor, ok := cmd.Annotations[metadata.CommandAnnotationPluginVendor]; ok && isPlugin(cmd) {

Callers 1

TestDecoratedNameFunction · 0.85

Calls 2

isPluginFunction · 0.85
NameMethod · 0.45

Tested by 1

TestDecoratedNameFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…