MCPcopy
hub / github.com/cloudfoundry/cli / GetCFConfig

Function GetCFConfig

util/configv3/load_config.go:41–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39}
40
41func GetCFConfig() (*Config, error) {
42 cfConfig, configErr := LoadConfig()
43 if configErr != nil {
44 if _, ok := configErr.(translatableerror.EmptyConfigError); !ok {
45 return nil, configErr
46 }
47 }
48 return cfConfig, nil
49}
50
51// LoadConfig loads the config from the .cf/config.json and os.ENV. If the
52// config.json does not exists, it will use a default config in its place.

Callers 2

mainFunction · 0.92
NewRepositoryLocatorFunction · 0.92

Calls 1

LoadConfigFunction · 0.85

Tested by

no test coverage detected