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

Method UsersForHost

internal/gh/gh.go:308–308  ·  view source on GitHub ↗

UsersForHost retrieves a list of users configured for a specific host.

(hostname string)

Source from the content-addressed store, hash-verified

306
307 // UsersForHost retrieves a list of users configured for a specific host.
308 UsersForHost(hostname string) []string
309
310 // TokenForUserWithRefresh retrieves the credential for a specified user and hostname and, when it is refreshable
311 // and its access token is expiring, renews and persists it. It may return a non-empty credential with an error,

Implementers 1

AuthConfiginternal/config/config.go

Calls

no outgoing calls