MCPcopy Index your code
hub / github.com/cloudfoundry/cli / MaxCommandNameLength

Method MaxCommandNameLength

cf/commandregistry/registry.go:119–127  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

117}
118
119func (r *registry) MaxCommandNameLength() int {
120 maxNameLen := 0
121 for name := range r.cmd {
122 if nameLen := utf8.RuneCountInString(name); nameLen > maxNameLen {
123 maxNameLen = nameLen
124 }
125 }
126 return maxNameLen
127}
128
129func (r *registry) Metadatas() []CommandMetadata {
130 var m []CommandMetadata

Callers 2

registry_test.goFile · 0.80
newAppPresenterFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected