MCPcopy Index your code
hub / github.com/cli/cli / has

Function has

pkg/cmd/auth/setupgit/setupgit.go:122–129  ·  view source on GitHub ↗
(needle string, haystack []string)

Source from the content-addressed store, hash-verified

120}
121
122func has(needle string, haystack []string) bool {
123 for _, s := range haystack {
124 if strings.EqualFold(s, needle) {
125 return true
126 }
127 }
128 return false
129}

Callers 1

setupGitRunFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected