MCPcopy
hub / github.com/cli/cli / keyFor

Function keyFor

pkg/cmd/auth/shared/gitcredentials/helper_config.go:114–117  ·  view source on GitHub ↗
(hostname string)

Source from the content-addressed store, hash-verified

112}
113
114func keyFor(hostname string) string {
115 host := strings.TrimSuffix(ghinstance.HostPrefix(hostname), "/")
116 return fmt.Sprintf("credential.%s.helper", host)
117}
118
119func shellQuote(s string) string {
120 if strings.ContainsAny(s, " $\\") {

Callers 4

ConfigureOursMethod · 0.85
ConfiguredHelperMethod · 0.85
ConfigureOursMethod · 0.85
ConfiguredHelperMethod · 0.85

Calls 1

HostPrefixFunction · 0.92

Tested by

no test coverage detected