docs: fix incorrect godoc comments on WithVersionCheck and WithFailfast (#2963)
This commit is contained in:
parent
a80bee87cb
commit
d4fd591dd3
1 changed files with 4 additions and 2 deletions
|
|
@ -621,7 +621,8 @@ func (o *ioOption) ApplyToExecutor(e *Executor) {
|
|||
e.Stderr = o.rw
|
||||
}
|
||||
|
||||
// WithVersionCheck tells the [Executor] whether or not to check the version of
|
||||
// WithVersionCheck tells the [Executor] whether or not to check the schema
|
||||
// version of the Taskfile before running.
|
||||
func WithVersionCheck(enableVersionCheck bool) ExecutorOption {
|
||||
return &versionCheckOption{enableVersionCheck}
|
||||
}
|
||||
|
|
@ -634,7 +635,8 @@ func (o *versionCheckOption) ApplyToExecutor(e *Executor) {
|
|||
e.EnableVersionCheck = o.enableVersionCheck
|
||||
}
|
||||
|
||||
// WithFailfast tells the [Executor] whether or not to check the version of
|
||||
// WithFailfast tells the [Executor] to stop running tasks as soon as any task
|
||||
// returns an error.
|
||||
func WithFailfast(failfast bool) ExecutorOption {
|
||||
return &failfastOption{failfast}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue