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

Function WithExecContainerID

agent/agentcontainers/devcontainercli.go:156–160  ·  view source on GitHub ↗

WithExecContainerID sets the container ID to target a specific container.

(id string)

Source from the content-addressed store, hash-verified

154// WithExecContainerID sets the container ID to target a specific
155// container.
156func WithExecContainerID(id string) DevcontainerCLIExecOptions {
157 return func(o *DevcontainerCLIExecConfig) {
158 o.Args = append(o.Args, "--container-id", id)
159 }
160}
161
162// WithRemoteEnv sets environment variables for the Exec command.
163func WithRemoteEnv(env ...string) DevcontainerCLIExecOptions {

Calls

no outgoing calls

Tested by 2