MCPcopy
hub / github.com/cli/cli / HostPrefix

Function HostPrefix

internal/ghinstance/host.go:93–98  ·  view source on GitHub ↗
(hostname string)

Source from the content-addressed store, hash-verified

91}
92
93func HostPrefix(hostname string) string {
94 if strings.EqualFold(hostname, localhost) {
95 return fmt.Sprintf("http://%s/", hostname)
96 }
97 return fmt.Sprintf("https://%s/", hostname)
98}
99
100func CategorizeHost(host string) string {
101 if host == defaultHostname {

Callers 8

listRunFunction · 0.92
keyForFunction · 0.92
AuthFlowFunction · 0.92
NewFunction · 0.92
RecordInstallFunction · 0.92
GenerateRepoURLFunction · 0.92
FormatRemoteURLFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected