WithExecContainerID sets the container ID to target a specific container.
(id string)
| 154 | // WithExecContainerID sets the container ID to target a specific |
| 155 | // container. |
| 156 | func 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. |
| 163 | func WithRemoteEnv(env ...string) DevcontainerCLIExecOptions { |
no outgoing calls