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

Method ActiveUser

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

ActiveUser will retrieve the username for the active user at the given hostname. This will not be accurate if the oauth token is set from an environment variable.

(hostname string)

Source from the content-addressed store, hash-verified

262 //
263 // This will not be accurate if the oauth token is set from an environment variable.
264 ActiveUser(hostname string) (username string, err error)
265
266 // Hosts retrieves a list of known hosts.
267 Hosts() []string

Implementers 1

AuthConfiginternal/config/config.go

Calls

no outgoing calls