|
58 | 58 | Watch bool |
59 | 59 | Verbose bool |
60 | 60 | Silent bool |
| 61 | + DisableFuzzy bool |
61 | 62 | AssumeYes bool |
62 | 63 | Dry bool |
63 | 64 | Summary bool |
@@ -125,6 +126,7 @@ func init() { |
125 | 126 | pflag.BoolVarP(&Watch, "watch", "w", false, "Enables watch of the given task.") |
126 | 127 | pflag.BoolVarP(&Verbose, "verbose", "v", getConfig(config, func() *bool { return config.Verbose }, false), "Enables verbose mode.") |
127 | 128 | pflag.BoolVarP(&Silent, "silent", "s", false, "Disables echoing.") |
| 129 | + pflag.BoolVar(&DisableFuzzy, "disable-fuzzy", getConfig(config, func() *bool { return config.DisableFuzzy }, false), "Disables fuzzy matching for task names.") |
128 | 130 | pflag.BoolVarP(&AssumeYes, "yes", "y", false, "Assume \"yes\" as answer to all prompts.") |
129 | 131 | pflag.BoolVarP(&Parallel, "parallel", "p", false, "Executes tasks provided on command line in parallel.") |
130 | 132 | pflag.BoolVarP(&Dry, "dry", "n", false, "Compiles and prints tasks in the order that they would be run, without executing them.") |
@@ -248,6 +250,7 @@ func (o *flagsOption) ApplyToExecutor(e *task.Executor) { |
248 | 250 | task.WithWatch(Watch), |
249 | 251 | task.WithVerbose(Verbose), |
250 | 252 | task.WithSilent(Silent), |
| 253 | + task.WithDisableFuzzy(DisableFuzzy), |
251 | 254 | task.WithAssumeYes(AssumeYes), |
252 | 255 | task.WithDry(Dry || Status), |
253 | 256 | task.WithSummary(Summary), |
|
0 commit comments