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
I wanted to setup npm completions on Windows using PowerShell and noticed that the completion subcommand only supports bash and zsh. While there are PowerShell modules that provide support for NPM, those are rather outdated and might not reflect the latest cli changes.
I have seen a very helpful trend in Go CLI applications to support various shells by utilizing the cobra module. From my understanding it automatically generates the code required by the various shells to properly complete arguments and also provides the necessary completion information via a _completions (spelling?) subcommand to those argument completers.
Maybe there exists a JavaScript package that can provide the same features, in order to reduce the effort for the npm cli developers?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I wanted to setup npm completions on Windows using PowerShell and noticed that the
completion
subcommand only supports bash and zsh. While there are PowerShell modules that provide support for NPM, those are rather outdated and might not reflect the latest cli changes.I have seen a very helpful trend in Go CLI applications to support various shells by utilizing the cobra module. From my understanding it automatically generates the code required by the various shells to properly complete arguments and also provides the necessary completion information via a
_completions
(spelling?) subcommand to those argument completers.Maybe there exists a JavaScript package that can provide the same features, in order to reduce the effort for the npm cli developers?
Beta Was this translation helpful? Give feedback.
All reactions