Skip to content

Fuzzy suggestions for tasks no longer work #2192

@gregtatum

Description

@gregtatum

Description

Our task file is getting kind of long (not in a bad way). I typed in a task incorrectly and thought it would be quite nice to suggest the closest task when the spelling is slightly off. I've had other tools automatically run the command it thinks you wanted, but just offering a sugestion would improve the ergonomics here.

For instance, something like this:

➤ task line-pyright
task: Available tasks for this project:
[...]
* lint:                        Run all available linting tools.
* lint-black:                  Checks the styling of the Python code with Black.
* lint-black-fix:              Fixes the styling of the Python code with Black.
* lint-eslint:                 Checks the styling of the JS code with eslint.
* lint-eslint-fix:             Fixes the styling of the JS code with eslint.
* lint-fix:                    Fix all automatically fixable errors. This is useful to run before pushing.
* lint-pyright:                Runs type checking on python files.
* lint-ruff:                   Lints the Python code with the ruff linter.
* lint-ruff-fix:               Fixes Python code lint errors with the ruff linter.
[...]
task: Task "line-pyright" does not exist.
Did you mean `task lint-pyright`?

I searched through the issues and didn't see this feature request anywhere.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: uiChanges related to the UI of Task.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions