WithExecer sets the agentexec.Execer implementation to use.
(execer agentexec.Execer)
| 125 | |
| 126 | // WithExecer sets the agentexec.Execer implementation to use. |
| 127 | func WithExecer(execer agentexec.Execer) Option { |
| 128 | return func(api *API) { |
| 129 | api.execer = execer |
| 130 | } |
| 131 | } |
| 132 | |
| 133 | // WithCommandEnv sets the CommandEnv implementation to use. |
| 134 | func WithCommandEnv(ce CommandEnv) Option { |