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

Function visibilityLabel

pkg/cmd/repo/list/list.go:248–255  ·  view source on GitHub ↗
(repo api.Repository)

Source from the content-addressed store, hash-verified

246}
247
248func visibilityLabel(repo api.Repository) string {
249 if repo.Visibility != "" {
250 return strings.ToLower(repo.Visibility)
251 } else if repo.IsPrivate {
252 return "private"
253 }
254 return "public"
255}

Callers 1

repoInfoFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected