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