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

Method SwitchUser

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

SwitchUser switches the active user for a given hostname.

(hostname, user string)

Source from the content-addressed store, hash-verified

188
189 // SwitchUser switches the active user for a given hostname.
190 SwitchUser(hostname, user string) error
191
192 // Logout will remove user, git protocol, and auth token for the given hostname.
193 // It will remove the auth token from the encrypted storage if it exists there.

Implementers 1

AuthConfiginternal/config/config.go

Calls

no outgoing calls