Options loops through the given [ExecutorOption] functions and applies them to the [Executor].
(opts ...ExecutorOption)
| 117 | // Options loops through the given [ExecutorOption] functions and applies them |
| 118 | // to the [Executor]. |
| 119 | func (e *Executor) Options(opts ...ExecutorOption) { |
| 120 | for _, opt := range opts { |
| 121 | opt.ApplyToExecutor(e) |
| 122 | } |
| 123 | } |
| 124 | |
| 125 | // WithDir sets the working directory of the [Executor]. By default, the |
| 126 | // directory is set to the user's current working directory. |
no test coverage detected