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

Method SwitchUser

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

SwitchUser switches the active user for a given hostname.

(hostname, user string)

Source from the content-addressed store, hash-verified

178
179 // SwitchUser switches the active user for a given hostname.
180 SwitchUser(hostname, user string) error
181
182 // Logout will remove user, git protocol, and auth token for the given hostname.
183 // It will remove the auth token from the encrypted storage if it exists there.

Implementers 1

AuthConfiginternal/config/config.go

Calls

no outgoing calls