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

Method SwitchUser

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

SwitchUser switches the active user for a given hostname.

(hostname, user string)

Source from the content-addressed store, hash-verified

142
143 // SwitchUser switches the active user for a given hostname.
144 SwitchUser(hostname, user string) error
145
146 // Logout will remove user, git protocol, and auth token for the given hostname.
147 // It will remove the auth token from the encrypted storage if it exists there.

Implementers 1

AuthConfiginternal/config/config.go

Calls

no outgoing calls