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

git-xargs: accept repo names via stdin #8

Closed zackproser closed 3 years ago

zackproser commented 3 years ago

Follow-up from #146

Per Jim's recommendation:

stdin: alternatively, git-xargs can read the list of repos, one per line, from stdin. This is similar to xargs itself.

I was thinking more along the lines of git-xargs getting the list of repos (but not the command to run) via either --repo / --repos flags:

git-xargs --repo gruntwork-io/foo --repo gruntwork-io/bar touch license.txt

Or via stdin:

echo -e "gruntwork-io/foo\ngruntwork-io/bar" | git-xargs touch license.txt