mirror of
https://github.com/go-task/task.git
synced 2026-06-27 06:34:18 +00:00
refactor: optimize fuzzy matching with lazy initialization (#2523)
This commit is contained in:
@@ -108,6 +108,16 @@ Disable command echoing.
|
||||
task deploy --silent
|
||||
```
|
||||
|
||||
#### `--disable-fuzzy`
|
||||
|
||||
Disable fuzzy matching for task names. When enabled, Task will not suggest similar task names when you mistype a task name.
|
||||
|
||||
```bash
|
||||
task buidl --disable-fuzzy
|
||||
# Output: Task "buidl" does not exist
|
||||
# (without "Did you mean 'build'?" suggestion)
|
||||
```
|
||||
|
||||
### Execution Control
|
||||
|
||||
#### `-F, --failfast`
|
||||
|
||||
@@ -91,6 +91,17 @@ experiments:
|
||||
verbose: true
|
||||
```
|
||||
|
||||
### `disable-fuzzy`
|
||||
|
||||
- **Type**: `boolean`
|
||||
- **Default**: `false`
|
||||
- **Description**: Disable fuzzy matching for task names. When enabled, Task will not suggest similar task names when you mistype a task name.
|
||||
- **CLI equivalent**: [`--disable-fuzzy`](./cli.md#--disable-fuzzy)
|
||||
|
||||
```yaml
|
||||
disable-fuzzy: true
|
||||
```
|
||||
|
||||
### `concurrency`
|
||||
|
||||
- **Type**: `integer`
|
||||
@@ -120,6 +131,7 @@ Here's a complete example of a `.taskrc.yml` file with all available options:
|
||||
```yaml
|
||||
# Global settings
|
||||
verbose: true
|
||||
disable-fuzzy: false
|
||||
concurrency: 2
|
||||
|
||||
# Enable experimental features
|
||||
|
||||
Reference in New Issue
Block a user