MCPcopy Create free account
hub / github.com/cloudfoundry/cli / line

Method line

cf/flags/flags_usage.go:31–37  ·  view source on GitHub ↗
(l int)

Source from the content-addressed store, hash-verified

29}
30
31func (p *flagPresenter) line(l int) string {
32 flagList := p.flagList()
33 usage := p.usage()
34 spaces := strings.Repeat(" ", 6+(l-len(flagList)))
35
36 return strings.TrimRight(fmt.Sprintf("%s%s%s", flagList, spaces, usage), " ")
37}
38
39func (p *flagPresenter) flagList() string {
40 f := p.flagSet

Callers 1

toStringMethod · 0.80

Calls 2

flagListMethod · 0.95
usageMethod · 0.95

Tested by

no test coverage detected