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

Method UsersForHost

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

Source from the content-addressed store, hash-verified

743}
744
745func (c *AuthConfig) UsersForHost(hostname string) []string {
746 users, err := c.cfg.Keys([]string{hostsKey, hostname, usersKey})
747 if err != nil {
748 return nil
749 }
750
751 return users
752}
753
754// TokenForUser retrieves the credential for the given user and hostname. Like ActiveToken it returns the last stored
755// token as-is, including the current access token of a refreshable credential, and never refreshes it; use

Callers 2

LogoutWithCredentialMethod · 0.95
logoutMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected