MCPcopy Create free account
hub / github.com/MiniCodeMonkey/chief / Exists

Function Exists

internal/config/config.go:47–50  ·  view source on GitHub ↗

Exists checks if the config file exists.

(baseDir string)

Source from the content-addressed store, hash-verified

45
46// Exists checks if the config file exists.
47func Exists(baseDir string) bool {
48 _, err := os.Stat(configPath(baseDir))
49 return err == nil
50}
51
52// Load reads the config from .chief/config.yaml.
53// Returns Default() when the file doesn't exist (no error).

Callers 1

TestExistsFunction · 0.85

Calls 1

configPathFunction · 0.85

Tested by 1

TestExistsFunction · 0.68