|
69 | 69 | Output ast.Output |
70 | 70 | Color bool |
71 | 71 | Interval time.Duration |
| 72 | + Failfast bool |
72 | 73 | Global bool |
73 | 74 | Experiments bool |
74 | 75 | Download bool |
@@ -137,6 +138,7 @@ func init() { |
137 | 138 | pflag.BoolVarP(&Color, "color", "c", true, "Colored output. Enabled by default. Set flag to false or use NO_COLOR=1 to disable.") |
138 | 139 | pflag.IntVarP(&Concurrency, "concurrency", "C", getConfig(config, func() *int { return config.Concurrency }, 0), "Limit number of tasks to run concurrently.") |
139 | 140 | pflag.DurationVarP(&Interval, "interval", "I", 0, "Interval to watch for changes.") |
| 141 | + pflag.BoolVarP(&Failfast, "failfast", "F", getConfig(config, func() *bool { return &config.Failfast }, false), "When running tasks in parallel, stop all tasks if one fails.") |
140 | 142 | pflag.BoolVarP(&Global, "global", "g", false, "Runs global Taskfile, from $HOME/{T,t}askfile.{yml,yaml}.") |
141 | 143 | pflag.BoolVar(&Experiments, "experiments", false, "Lists all the available experiments and whether or not they are enabled.") |
142 | 144 |
|
@@ -253,6 +255,7 @@ func (o *flagsOption) ApplyToExecutor(e *task.Executor) { |
253 | 255 | task.WithOutputStyle(Output), |
254 | 256 | task.WithTaskSorter(sorter), |
255 | 257 | task.WithVersionCheck(true), |
| 258 | + task.WithFailfast(Failfast), |
256 | 259 | ) |
257 | 260 | } |
258 | 261 |
|
|
0 commit comments