Uh oh!
There was an error while loading. Please reload this page.
refactor deprecate command and add tests - #2302
Conversation
ljharb
commented
Dec 8, 2020
When you say "list packages" - does that mean there's supposed to be a way for |
nlf
commented
Dec 8, 2020
ah, nope. this was for tab completion, what you're suggesting would need an RFC, but is a pretty easy one for implementation. |
ljharb
commented
Dec 8, 2020
Thanks, I'll add that to my list then. |
PR-URL: #2302 Credit: @nlfClose: #2302 Reviewed-by: @ruyadorno
d5fde41 to
f682445Compare
refactoring was mostly for readability, but there are some important changes to completion.
notably, the api endpoint we were using to list packages doesn't exist so could never work. i adjusted it to use a method that works, and to filter the result set based on current partial user input. i'm not totally sure if the filtering is necessary, but it seems kind to do it in js-land instead of letting the shell deal with it when the number of packages could be significant
References
Closesnpm/statusboard#146