MCPcopy Index your code
hub / github.com/cli/cli / UsersForHost

Method UsersForHost

internal/config/config.go:493–500  ·  view source on GitHub ↗
(hostname string)

Source from the content-addressed store, hash-verified

491}
492
493func (c *AuthConfig) UsersForHost(hostname string) []string {
494 users, err := c.cfg.Keys([]string{hostsKey, hostname, usersKey})
495 if err != nil {
496 return nil
497 }
498
499 return users
500}
501
502func (c *AuthConfig) TokenForUser(hostname, user string) (string, string, error) {
503 if token, err := keyring.Get(keyringServiceName(hostname), user); err == nil {

Callers 1

LogoutMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected