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

Method UsersForHost

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

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

Implementers 1

AuthConfiginternal/config/config.go

Calls

no outgoing calls