MCPcopy Create free account
hub / github.com/docker/compose / init

Function init

cmd/compose/compose.go:90–98  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

88var stdioToStdout bool
89
90func init() {
91 // compose evaluates env file values for interpolation
92 // `raw` format allows to load env_file with the same parser used by docker run --env-file
93 dotenv.RegisterFormat("raw", rawEnv)
94
95 if v, ok := os.LookupEnv("COMPOSE_STATUS_STDOUT"); ok {
96 stdioToStdout, _ = strconv.ParseBool(v)
97 }
98}
99
100// Command defines a compose CLI command as a func with args
101type Command func(context.Context, []string) error

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected