MCPcopy Create free account
hub / github.com/cli/cli / NewConfig

Function NewConfig

internal/config/config.go:46–54  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

44)
45
46func NewConfig() (gh.Config, error) {
47 c, err := ghConfig.Read(fallbackConfig())
48 if err != nil {
49 return nil, err
50 }
51 config := &cfg{cfg: c}
52 config.auth = &AuthConfig{cfg: c}
53 return config, nil
54}
55
56// Implements Config interface
57type cfg struct {

Callers 2

MainFunction · 0.92

Calls 2

fallbackConfigFunction · 0.85
ReadMethod · 0.45

Tested by 1