| 216 | } |
| 217 | |
| 218 | func listHeader(owner string, matchCount, totalMatchCount int, hasFilters bool) string { |
| 219 | if totalMatchCount == 0 { |
| 220 | if hasFilters { |
| 221 | return "No results match your search" |
| 222 | } else if owner != "" { |
| 223 | return "There are no repositories in @" + owner |
| 224 | } |
| 225 | return "No results" |
| 226 | } |
| 227 | |
| 228 | var matchStr string |
| 229 | if hasFilters { |
| 230 | matchStr = " that match your search" |
| 231 | } |
| 232 | return fmt.Sprintf("Showing %d of %d repositories in @%s%s", matchCount, totalMatchCount, owner, matchStr) |
| 233 | } |
| 234 | |
| 235 | func repoInfo(r api.Repository) string { |
| 236 | tags := []string{visibilityLabel(r)} |