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

Method SwitchUser

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

SwitchUser switches the active user for a given hostname.

(hostname, user string)

Source from the content-addressed store, hash-verified

290
291 // SwitchUser switches the active user for a given hostname.
292 SwitchUser(hostname, user string) error
293
294 // Logout will remove user, git protocol, and auth token for the given hostname.
295 // It will remove the auth token from the encrypted storage if it exists there.

Implementers 1

AuthConfiginternal/config/config.go

Calls

no outgoing calls