Skip to content

CLI auto completion #609

Open
Open
@octref

Description

@octref

Something npm has always bugged me is auto completion.

It requires putting source <(npm completion) to my zshrc, which is extremely slow and seldom outputs useful completion.

A few examples yarn could do:

letting yarn <Tab> outputs all commands:

install -- install package
remove  -- remove package
...other commands

letting each flag output useful information:
yarn install -<Tab>

-g -- install package globally
-S -- install package and save as dependency

letting yarn install <Tab> prompt a list of cached packages:
yarn install r<Tab>

react@0.14
redux@3.0

letting yarn rm <Tab> list packages installed locally
yarn rm r<Tab>

react@0.14
redux@3.0

Thanks for the good work!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions