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

Function helperCategory

pkg/cmd/auth/shared/git_credential.go:164–173  ·  view source on GitHub ↗
(helper gitcredentials.Helper)

Source from the content-addressed store, hash-verified

162}
163
164func helperCategory(helper gitcredentials.Helper) string {
165 switch {
166 case helper.IsOurs():
167 return "ours"
168 case helper.IsConfigured():
169 return "other"
170 default:
171 return "none"
172 }
173}
174
175func (flow *GitCredentialFlow) ShouldSetup() bool {
176 return flow.shouldSetup

Callers 3

TestHelperCategoryFunction · 0.85

Calls 2

IsOursMethod · 0.80
IsConfiguredMethod · 0.80

Tested by 1

TestHelperCategoryFunction · 0.68