mirror of
https://github.com/go-task/task.git
synced 2026-08-29 10:08:27 +02:00
docs: fix incorrect godoc comments on WithVersionCheck and WithFailfast (#2963)
This commit is contained in:
@@ -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}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user