ActiveUser will retrieve the username for the active user at the given hostname. This will not be accurate if the oauth token is set from an environment variable.
(hostname string)
| 331 | // ActiveUser will retrieve the username for the active user at the given hostname. |
| 332 | // This will not be accurate if the oauth token is set from an environment variable. |
| 333 | func (c *AuthConfig) ActiveUser(hostname string) (string, error) { |
| 334 | return c.cfg.Get([]string{hostsKey, hostname, userKey}) |
| 335 | } |
| 336 | |
| 337 | func (c *AuthConfig) Hosts() []string { |
| 338 | if c.hostsOverride != nil { |
no test coverage detected