MCPcopy Index your code
hub / github.com/cli/cli / UsersForHost

Method UsersForHost

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

149
150 // UsersForHost retrieves a list of users configured for a specific host.
151 UsersForHost(hostname string) []string
152
153 // TokenForUser retrieves the authentication token and its source for a specified user and hostname.
154 TokenForUser(hostname, user string) (token string, source string, err error)

Implementers 1

AuthConfiginternal/config/config.go

Calls

no outgoing calls