Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/cli/cli
/ NewConfig
Function
NewConfig
internal/config/config.go:40–46 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
38
)
39
40
func
NewConfig() (gh.Config, error) {
41
c, err := ghConfig.Read(fallbackConfig())
42
if
err != nil {
43
return
nil, err
44
}
45
return
&cfg{c}, nil
46
}
47
48
// Implements Config interface
49
type
cfg
struct
{
Callers
2
Main
Function · 0.92
TestNewConfigProvidesFallback
Function · 0.85
Calls
2
fallbackConfig
Function · 0.85
Read
Method · 0.45
Tested by
1
TestNewConfigProvidesFallback
Function · 0.68