Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cli/cli
/ NewConfig
Function
NewConfig
internal/config/config.go:41–47 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
39
)
40
41
func
NewConfig() (gh.Config, error) {
42
c, err := ghConfig.Read(fallbackConfig())
43
if
err != nil {
44
return
nil, err
45
}
46
return
&cfg{c}, nil
47
}
48
49
// Implements Config interface
50
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