feat: add --failfast and failtest: true to control dependencies (#2525)

This commit is contained in:
Andrey Nering
2025-12-07 17:23:08 -03:00
committed by GitHub
parent 54e4905432
commit 9b99866224
24 changed files with 180 additions and 2 deletions

View File

@@ -48,6 +48,7 @@ type (
Color bool
Concurrency int
Interval time.Duration
Failfast bool
// I/O
Stdin io.Reader
@@ -517,3 +518,16 @@ type versionCheckOption struct {
func (o *versionCheckOption) ApplyToExecutor(e *Executor) {
e.EnableVersionCheck = o.enableVersionCheck
}
// WithFailfast tells the [Executor] whether or not to check the version of
func WithFailfast(failfast bool) ExecutorOption {
return &failfastOption{failfast}
}
type failfastOption struct {
failfast bool
}
func (o *failfastOption) ApplyToExecutor(e *Executor) {
e.Failfast = o.failfast
}