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

Method UsersForHost

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

Source from the content-addressed store, hash-verified

694}
695
696func (c *AuthConfig) UsersForHost(hostname string) []string {
697 users, err := c.cfg.Keys([]string{hostsKey, hostname, usersKey})
698 if err != nil {
699 return nil
700 }
701
702 return users
703}
704
705// TokenForUser retrieves the credential for the given user and hostname. Like ActiveToken it returns the last stored
706// token as-is, including the current access token of a refreshable credential, and never refreshes it; use

Callers 1

LogoutMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected