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

Method SwitchUser

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

SwitchUser switches the active user for a given hostname.

(hostname, user string)

Source from the content-addressed store, hash-verified

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

Implementers 1

AuthConfiginternal/config/config.go

Calls

no outgoing calls