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