WithRemoteEnv sets environment variables for the Exec command.
(env ...string)
| 161 | |
| 162 | // WithRemoteEnv sets environment variables for the Exec command. |
| 163 | func 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. |
no outgoing calls
no test coverage detected