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