MCPcopy Create free account
hub / github.com/github/gh-aw / SetDefaultGHHost

Function SetDefaultGHHost

pkg/workflow/github_cli.go:27–31  ·  view source on GitHub ↗

SetDefaultGHHost sets the default host used by gh CLI helper commands when GH_HOST is not set in the process environment.

(host string)

Source from the content-addressed store, hash-verified

25// SetDefaultGHHost sets the default host used by gh CLI helper commands when GH_HOST
26// is not set in the process environment.
27func SetDefaultGHHost(host string) {
28 defaultGHHost.mu.Lock()
29 defer defaultGHHost.mu.Unlock()
30 defaultGHHost.host = host
31}
32
33func getDefaultGHHost() string {
34 defaultGHHost.mu.RLock()

Calls

no outgoing calls