You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The result of running npm completion is a monolithic function for the entirety of the npm command. Contrast this with git which allows a definition like:
alias gp='git push'
__git_complete gp _git_push
How
Current Behaviour
The current npm completion only works for the base command.
Desired Behaviour
I could define:
alias nr='npm run'
__npm_complete nr _npm_run
And when I double tab after nr it would show me the available tasks (the behavior when double tabbing after npm run when completions are loaded) rather than listing the files in the current directory.
Motivation ("The Why")
The result of running
npm completion
is a monolithic function for the entirety of thenpm
command. Contrast this withgit
which allows a definition like:How
Current Behaviour
The current
npm completion
only works for the base command.Desired Behaviour
I could define:
And when I double tab after
nr
it would show me the available tasks (the behavior when double tabbing afternpm run
when completions are loaded) rather than listing the files in the current directory.References
git
bash
completionsThe text was updated successfully, but these errors were encountered: