MCPcopy
hub / github.com/docker/compose / WithEnv

Function WithEnv

pkg/e2e/framework.go:117–121  ·  pkg/e2e/framework.go::WithEnv

WithEnv sets environment variables that will be passed to commands.

(env ...string)

Source from the content-addressed store, hash-verified

115
116// WithEnv sets environment variables that will be passed to commands.
117func WithEnv(env ...string) CLIOption {
118 return func(c *CLI) {
119 c.env = append(c.env, env...)
120 }
121}
122
123func copyLocalConfig(t testing.TB, configDir string) {
124 t.Helper()

Calls

no outgoing calls