MCPcopy Create free account
hub / github.com/cli/cli / UsersForHost

Method UsersForHost

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

Source from the content-addressed store, hash-verified

548}
549
550func (c *AuthConfig) UsersForHost(hostname string) []string {
551 users, err := c.cfg.Keys([]string{hostsKey, hostname, usersKey})
552 if err != nil {
553 return nil
554 }
555
556 return users
557}
558
559func (c *AuthConfig) TokenForUser(hostname, user string) (string, string, error) {
560 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