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

Function visibilityLabel

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

Source from the content-addressed store, hash-verified

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

Callers 1

repoInfoFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected