gruntwork-io / git-xargs

git-xargs is a command-line tool (CLI) for making updates across multiple Github repositories with a single command.
https://blog.gruntwork.io/introducing-git-xargs-an-open-source-tool-to-update-multiple-github-repos-753f9f3675ec
Apache License 2.0
935 stars 62 forks source link

Interactive mode #11

Closed zackproser closed 1 year ago

zackproser commented 3 years ago

Currently, the tool runs in "headless" mode. You can either feed it:

* A Github organization via the `--github-org flag`
* A local file that contains repos, one on in each line, in gruntwork-io/fetch format via the `--repos` flag
* One or many repos explicitly on the command line via `--repo` 

However, whether you run it in --dry-run mode (to only see proposed changes without having them made) or you run it in normal mode such that changes are made, PRs are opened, etc, you have to sit there passively and watch the output stream by.

It would be nice to have the option to run the tool in "interactive mode" where each repo and the rich diff mentioned in #92 would be shown in your terminal and allow you to type [Y\n] to either proceed with or skip making the upgrade / change.

This would also give the tool broader appeal for folks less comfortable with the command line in general, perhaps leveraging something like https://pterm.sh/#/