autocomplete icon indicating copy to clipboard operation
autocomplete copied to clipboard

[npm]: Missing options for several npm commands

Open harimm opened this issue 2 years ago • 2 comments

Sanity checks

  • [X] My issue relates to a specific CLI completion spec (e.g. git checkout is missing options in git completion spec). If your issue is more general, please create your issue here: withfig/fig
  • [X] I have searched github.com/withfig/autocomplete/issues and there are no duplicates of my issue
  • [X] I would like to work on this.

What CLI tool does this relate to?

npm

Which statement makes the most sense?

This completion spec isn't complete

Issue Details

The completion spec does not include certain options for some commands -

for example: --registry for ping, star, unstar etc.

Also certain aliases are incorrectly shown as independent commands.

For example v should be an alias for view but is shown incorrectly as a separate command, and up should be an alias for update, but shown incorrectly as a separate command

EDIT: updated for clarity

harimm avatar Feb 28 '22 08:02 harimm

Partially fixed with https://github.com/withfig/autocomplete/pull/1001. There are still more improvements needed

harimm avatar Mar 06 '22 01:03 harimm

Another set of changes merged with https://github.com/withfig/autocomplete/pull/1019

harimm avatar Mar 12 '22 14:03 harimm

These are all included so closing for now

brendanfalk avatar Nov 23 '22 18:11 brendanfalk