MCPcopy
hub / github.com/cli/cli / ListNoResults

Function ListNoResults

pkg/cmd/pr/shared/display.go:66–71  ·  view source on GitHub ↗
(repoName string, itemName string, hasFilters bool)

Source from the content-addressed store, hash-verified

64}
65
66func ListNoResults(repoName string, itemName string, hasFilters bool) error {
67 if hasFilters {
68 return cmdutil.NewNoResultsError(fmt.Sprintf("no %ss match your search in %s", itemName, repoName))
69 }
70 return cmdutil.NewNoResultsError(fmt.Sprintf("no open %ss in %s", itemName, repoName))
71}
72
73func ListHeader(repoName string, itemName string, matchCount int, totalMatchCount int, hasFilters bool) string {
74 if hasFilters {

Callers 2

ResolveMethod · 0.92
listRunFunction · 0.92

Calls 1

NewNoResultsErrorFunction · 0.92

Tested by

no test coverage detected