docs: fix incorrect godoc comments on WithVersionCheck and WithFailfast (#2963)

This commit is contained in:
Nithwin
2026-08-10 23:15:37 +05:30
committed by GitHub
parent a80bee87cb
commit d4fd591dd3

View File

@@ -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}
}