Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/cli/cli
/ Login
Method
Login
pkg/cmd/auth/shared/login_flow.go:25–25 ·
view source on GitHub ↗
(string, string, string, string, bool)
Source
from the content-addressed store, hash-verified
23
24
type
iconfig
interface
{
25
Login(string, string, string, string, bool) (bool, error)
26
UsersForHost(string) []string
27
}
28
Callers
15
Test_CheckAuth
Function · 0.65
login
Function · 0.65
TestSwitchRun
Function · 0.65
refreshRun
Function · 0.65
Test_refreshRun
Function · 0.65
login
Function · 0.65
Login
Function · 0.65
Test_loginRun_nontty
Function · 0.65
Test_loginRun_Survey
Function · 0.65
loginRun
Function · 0.65
login
Function · 0.65
Test_logoutRun_tty
Function · 0.65
Implementers
1
AuthConfig
internal/config/config.go
Calls
no outgoing calls
Tested by
10
Test_CheckAuth
Function · 0.52
login
Function · 0.52
TestSwitchRun
Function · 0.52
Test_refreshRun
Function · 0.52
login
Function · 0.52
Test_loginRun_nontty
Function · 0.52
Test_loginRun_Survey
Function · 0.52
login
Function · 0.52
Test_logoutRun_tty
Function · 0.52
Test_logoutRun_nontty
Function · 0.52