Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support --from-file to allow reading repos from a text file #65

Open
stefanbuck opened this issue Mar 22, 2022 · 3 comments · May be fixed by #66
Open

Support --from-file to allow reading repos from a text file #65

stefanbuck opened this issue Mar 22, 2022 · 3 comments · May be fixed by #66

Comments

@stefanbuck
Copy link
Member

When working with hundreds of repositories it would be helpful to be able to pass repos from a text file rather than having X args.

Current usage

npx @octoherd/cli -R octoherd/repo-a octoherd/repo-b octoherd/repo-c

Proposal

npx @octoherd/cli --from-file ./repo-list.txt

repo-list.txt

octoherd/repo-a 
octoherd/repo-b
octoherd/repo-c

To make working with the text file a breeze, lines starting with // or # will be ignored. I'm more than happy to submit a pull request for it if you think that would be a useful feature to have.

@gr2m
Copy link
Member

gr2m commented Mar 23, 2022

I would prefer to support piping, as in

cat repo-list.txt | npx @octoherd/cli

that would make it more flexible. But I haven't worked on a CLI that accepts piping yet and I'm not aware of best practices. Would it be something you'd be interested to work on yourself?

@stefanbuck
Copy link
Member Author

Sure, Octoherd saved me a few hours of work so more than happy to contribute back.

@gr2m
Copy link
Member

gr2m commented Mar 24, 2022

Yay, glad to hear that it's useful :)

@stefanbuck stefanbuck linked a pull request Mar 24, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants