WithDevcontainerCLI sets the DevcontainerCLI implementation to use. This can be used in tests to modify @devcontainer/cli behavior.
(dccli DevcontainerCLI)
| 176 | // WithDevcontainerCLI sets the DevcontainerCLI implementation to use. |
| 177 | // This can be used in tests to modify @devcontainer/cli behavior. |
| 178 | func WithDevcontainerCLI(dccli DevcontainerCLI) Option { |
| 179 | return func(api *API) { |
| 180 | api.dccli = dccli |
| 181 | } |
| 182 | } |
| 183 | |
| 184 | // WithSubAgentClient sets the SubAgentClient implementation to use. |
| 185 | // This is used to list, create, and delete devcontainer agents. |
no outgoing calls