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

Function NewConfig

internal/config/config.go:49–57  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 2

MainFunction · 0.92

Calls 2

fallbackConfigFunction · 0.85
ReadMethod · 0.45

Tested by 1