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

Method Description

cli/command/plugin/formatter.go:88–96  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

86}
87
88func (c *pluginContext) Description() string {
89 desc := strings.ReplaceAll(c.p.Config.Description, "\n", "")
90 desc = strings.ReplaceAll(desc, "\r", "")
91 if c.trunc {
92 desc = formatter.Ellipsis(desc, 45)
93 }
94
95 return desc
96}
97
98func (c *pluginContext) Enabled() bool {
99 return c.p.Enabled

Callers 1

getDescriptionFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected