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

Function binName

cli/required.go:103–105  ·  view source on GitHub ↗

binName returns the name of the binary / root command (usually 'docker').

(cmd *cobra.Command)

Source from the content-addressed store, hash-verified

101
102// binName returns the name of the binary / root command (usually 'docker').
103func binName(cmd *cobra.Command) string {
104 return cmd.Root().Name()
105}
106
107//nolint:unparam
108func pluralize(word string, number int) string {

Callers 5

NoArgsFunction · 0.85
RequiresMinArgsFunction · 0.85
RequiresMaxArgsFunction · 0.85
RequiresRangeArgsFunction · 0.85
ExactArgsFunction · 0.85

Calls 1

NameMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…