MCPcopy Create free account
hub / github.com/astercloud/aster / ResolveConfigFile

Function ResolveConfigFile

pkg/config/paths.go:196–201  ·  view source on GitHub ↗

ResolveConfigFile returns the effective config file path. Priority: project config > global config

(workDir string)

Source from the content-addressed store, hash-verified

194// ResolveConfigFile returns the effective config file path.
195// Priority: project config > global config
196func ResolveConfigFile(workDir string) string {
197 if projectConfig := ProjectConfigFile(workDir); projectConfig != "" {
198 return projectConfig
199 }
200 return ConfigFile()
201}

Callers 1

TestResolveConfigFileFunction · 0.85

Calls 2

ProjectConfigFileFunction · 0.85
ConfigFileFunction · 0.85

Tested by 1

TestResolveConfigFileFunction · 0.68