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

Method UsersForHost

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

193
194 // UsersForHost retrieves a list of users configured for a specific host.
195 UsersForHost(hostname string) []string
196
197 // TokenForUser retrieves the authentication token and its source for a specified user and hostname.
198 TokenForUser(hostname, user string) (token string, source string, err error)

Implementers 1

AuthConfiginternal/config/config.go

Calls

no outgoing calls