MCPcopy Create free account
hub / github.com/compose-spec/compose-go / WithEnvFile

Function WithEnvFile

cli/options.go:253–259  ·  view source on GitHub ↗

WithEnvFile sets an alternate env file. Deprecated: use WithEnvFiles instead.

(file string)

Source from the content-addressed store, hash-verified

251//
252// Deprecated: use WithEnvFiles instead.
253func WithEnvFile(file string) ProjectOptionsFn {
254 var files []string
255 if file != "" {
256 files = []string{file}
257 }
258 return WithEnvFiles(files...)
259}
260
261// WithEnvFiles set env file(s) to be loaded to set project environment.
262// defaults to local .env file if no explicit file is selected, until COMPOSE_DISABLE_ENV_FILE is set

Callers

nothing calls this directly

Calls 1

WithEnvFilesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…