[CRWA]: Upgrade from listr
to listr2
#6447
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
Assuming #6444 is accepted then CRWA uses older
listr
while the CLI uses the newerlistr2
. No need to fetch two different packages that do the same thing.Solution
Update the CRWA to use
listr2
in line with the CLI.Changes
The changes are very minor.
collapse: false
torendererOptions: {collapse: false}}
Outstanding work
Nothing I can think of right now. There may be in-progress discussions or updates to the CRWA which I'm unaware of. Hopefully none of these invalidate this proposed change.
In principle
listr2
supports prompting via theenquirer
package and so it might be useful to homogenous prompting across the whole project to use this package rather than the currentprompts
but this is probably beyond the scope of this small PR.