MCPcopy Create free account
hub / github.com/codehamr/codehamr / applyEnvOverrides

Function applyEnvOverrides

cmd/codehamr/main.go:215–219  ·  view source on GitHub ↗

applyEnvOverrides folds runtime env vars into cfg. CODEHAMR_URL overrides the active profile's URL (devcontainers / CI), held on a non-serialised field so it never round-trips into config.yaml on Save.

(cfg *config.Config)

Source from the content-addressed store, hash-verified

213 }
214 return cwd
215}
216
217// applyEnvOverrides folds runtime env vars into cfg. CODEHAMR_URL overrides
218// the active profile's URL (devcontainers / CI), held on a non-serialised
219// field so it never round-trips into config.yaml on Save.
220func applyEnvOverrides(cfg *config.Config) {
221 if envURL := os.Getenv("CODEHAMR_URL"); envURL != "" {
222 cfg.URLOverride = envURL

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected