Skip to content

CLI autocompletion false-positive when the group name has spacing #3073

@yuan-y-chang

Description

@yuan-y-chang

Reproduce

Environment: zsh, Ubuntu

When we have

[doc: "Prepare environment"]
[group: "integration test"]
prepare-env:

just --list shows

> just --list
Available recipes:

[integration test]
prepare-env # Prepare environment

and type just <tab><tab> on the terminal:

> just \[integration
[integration                                            -- Args: test]
prepare-env                                             -- Args: # Prepare environment

How to avoid it

Use other characters instead of spacing.

[doc: "Prepare environment"]
[group: "integration-test"]
prepare-env:

type just <tab><tab>

> just prepare-env
prepare-env                                             -- Args: # Prepare environment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions