Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
122
func
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
setupGitRun
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected