MCPcopy 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
42func 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
51type cfg struct {

Callers 2

MainFunction · 0.92

Calls 2

fallbackConfigFunction · 0.85
ReadMethod · 0.45

Tested by 1