[eas-cli] Add interactivity to eas update:edit command #2638
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.
Why
When writing the docs for update-based rollouts, I noticed that a) this command was still hidden, and b) it didn't have the best UX for interactive mode (#2503 didn't add it)
How
a) unhide the command
b) Make group arg optional, add optional branch flag, and lead user through interactive process to choose an update group to edit if not supplied as an arg
Note that this doesn't filter update groups to those that are editable since it isn't currently possible to query. We can update this in the future if we want, but usability of the feature probably won't suffer much without it since it's likely the latest update group will always be the one chosen to be edited.
Test Plan
neas update:edit
neas update:edit --branch main