MCPcopy
hub / github.com/cli/cli / GistPrefix

Function GistPrefix

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

Source from the content-addressed store, hash-verified

70}
71
72func GistPrefix(hostname string) string {
73 prefix := "https://"
74 if strings.EqualFold(hostname, localhost) {
75 prefix = "http://"
76 }
77 return prefix + GistHost(hostname)
78}
79
80func GistHost(hostname string) string {
81 if isGarage(hostname) {

Callers 1

viewRunFunction · 0.92

Calls 1

GistHostFunction · 0.85

Tested by

no test coverage detected