MCPcopy
hub / github.com/cli/cli / listHeader

Function listHeader

pkg/cmd/org/list/list.go:94–100  ·  view source on GitHub ↗
(user string, resultCount, totalCount int)

Source from the content-addressed store, hash-verified

92}
93
94func listHeader(user string, resultCount, totalCount int) string {
95 if totalCount == 0 {
96 return "There are no organizations associated with @" + user
97 }
98
99 return fmt.Sprintf("Showing %d of %s", resultCount, text.Pluralize(totalCount, "organization"))
100}

Callers 1

listRunFunction · 0.70

Calls 1

PluralizeFunction · 0.92

Tested by

no test coverage detected