MCPcopy Create free account
hub / github.com/OverloadBlitz/cloudcent-cli / Path

Function Path

internal/config/config.go:31–37  ·  view source on GitHub ↗

Path returns the full path to config.yaml.

()

Source from the content-addressed store, hash-verified

29
30// Path returns the full path to config.yaml.
31func Path() (string, error) {
32 dir, err := Dir()
33 if err != nil {
34 return "", err
35 }
36 return filepath.Join(dir, "config.yaml"), nil
37}
38
39// Load reads ~/.cloudcent/config.yaml. Returns nil, nil if missing.
40// If the CLOUDCENT_API_KEY environment variable is set, it takes precedence

Callers 4

ViewMethod · 0.92
runConfigFunction · 0.92
LoadFunction · 0.85
SaveFunction · 0.85

Calls 1

DirFunction · 0.85

Tested by

no test coverage detected