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

Function HostPrefix

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

Source from the content-addressed store, hash-verified

100}
101
102func HostPrefix(hostname string) string {
103 if strings.EqualFold(hostname, localhost) {
104 return fmt.Sprintf("http://%s/", hostname)
105 }
106 return fmt.Sprintf("https://%s/", hostname)
107}
108
109func CategorizeHost(host string) string {
110 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