MCPcopy Index your code
hub / github.com/coder/coder / WithRemoteEnv

Function WithRemoteEnv

agent/agentcontainers/devcontainercli.go:163–169  ·  view source on GitHub ↗

WithRemoteEnv sets environment variables for the Exec command.

(env ...string)

Source from the content-addressed store, hash-verified

161
162// WithRemoteEnv sets environment variables for the Exec command.
163func WithRemoteEnv(env ...string) DevcontainerCLIExecOptions {
164 return func(o *DevcontainerCLIExecConfig) {
165 for _, e := range env {
166 o.Args = append(o.Args, "--remote-env", e)
167 }
168 }
169}
170
171// DevcontainerCLIExecOptions are options for the devcontainer CLI ReadConfig
172// command.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected