microsoft / rushstack

Monorepo for tools developed by the Rush Stack community
https://rushstack.io/
Other
5.81k stars 592 forks source link

[rush] Feature Request: Type to filter in upgrade-interactive #3788

Open ethanrcohen opened 1 year ago

ethanrcohen commented 1 year ago

Summary

Using upgrade-interactive is a huge QOL improvement from our previous upgrade process! But it is a bit tedious to page up/down to find the relevant project in moderately sized monorepos. It would be awesome if one could just start typing the name of the package that they want to upgrade with the list of projects updating in response.

Standard questions

Please answer these questions to help us investigate your issue more quickly:

Question Answer
@microsoft/rush globally installed version? 5.74.0
rushVersion from rush.json? 5.83.3
useWorkspaces from rush.json? true
Operating system? Mac
Would you consider contributing a PR? Yes
Node.js version (node -v)? 16.13.0
ethanrcohen commented 1 year ago

Took a quick look at the source code and saw that inquirer does not support this functionality without use of an addon like https://github.com/robin-rpr/inquirer-search-list. Would the team be interested in adding that dependency to support this use case?

iclanton commented 1 year ago

This seems pretty similar to https://github.com/microsoft/rushstack/pull/3732, but for the dependency name instead of the project name (if I'm reading this correctly). The code that @TheLarkInn put together for that could probably be reused.