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

Method UsersForHost

internal/gh/gh.go:299–299  ·  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

297
298 // UsersForHost retrieves a list of users configured for a specific host.
299 UsersForHost(hostname string) []string
300
301 // TokenForUserWithRefresh retrieves the credential for a specified user and hostname and, when it is refreshable
302 // 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