MCPcopy Create free account
hub / github.com/cli/cli / listHeader

Function listHeader

pkg/cmd/event/subscription/list/list.go:118–123  ·  view source on GitHub ↗

listHeader describes the listed subscriptions. The API reports no total, so a full page may not be all of them.

(count, limit int)

Source from the content-addressed store, hash-verified

116
117// listHeader describes the listed subscriptions. The API reports no total, so a full page may not be all of them.
118func listHeader(count, limit int) string {
119 if count < limit {
120 return fmt.Sprintf("Showing %s", text.Pluralize(count, "event subscription"))
121 }
122 return fmt.Sprintf("Showing the %s", text.Pluralize(count, "most recent event subscription"))
123}

Callers 2

TestListHeaderFunction · 0.70
listRunFunction · 0.70

Calls 1

PluralizeFunction · 0.92

Tested by 1

TestListHeaderFunction · 0.56