MCPcopy
hub / github.com/go-task/task / Options

Method Options

executor.go:119–123  ·  view source on GitHub ↗

Options loops through the given [ExecutorOption] functions and applies them to the [Executor].

(opts ...ExecutorOption)

Source from the content-addressed store, hash-verified

117// Options loops through the given [ExecutorOption] functions and applies them
118// to the [Executor].
119func (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.

Callers 2

NewExecutorFunction · 0.95
ApplyToExecutorMethod · 0.45

Calls 1

ApplyToExecutorMethod · 0.65

Tested by

no test coverage detected