MCPcopy Create free account
hub / github.com/dan-v/lambda-nat-proxy / getConfigSource

Function getConfigSource

cmd/lambda-nat-proxy/cmd_config.go:183–196  ·  view source on GitHub ↗

getConfigSource returns a user-friendly description of where config is loaded from

(configPath string)

Source from the content-addressed store, hash-verified

181
182// getConfigSource returns a user-friendly description of where config is loaded from
183func getConfigSource(configPath string) string {
184 if configPath != "" {
185 // Explicit config file specified
186 return configPath
187 }
188
189 // Check if config file exists in standard locations
190 if foundPath, err := config.FindConfigFile(); err == nil {
191 return foundPath
192 }
193
194 // No config file found, using defaults
195 return "defaults (no config file found)"
196}

Callers 2

runConfigInitFunction · 0.85
runConfigShowFunction · 0.85

Calls 1

FindConfigFileFunction · 0.92

Tested by

no test coverage detected