IssueRaiser

CLI auto completion

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!

Posted by octref on Oct 11, 2016, 3:48 PM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.4,500 issues0 comments

onboarding (Other)

CLI auto completion

octrefOct 11, 2016, 3:48 PM

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!

Comments (0)

No comments yet. Start the discussion.

Comment on this issue