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)
| 421 | // ActiveUser will retrieve the username for the active user at the given hostname. |
| 422 | // This will not be accurate if the oauth token is set from an environment variable. |
| 423 | func (c *AuthConfig) ActiveUser(hostname string) (string, error) { |
| 424 | return c.cfg.Get([]string{hostsKey, hostname, userKey}) |
| 425 | } |
| 426 | |
| 427 | func (c *AuthConfig) Hosts() []string { |
| 428 | if c.hostsOverride != nil { |
no test coverage detected