3 ms·
Run-All
github.com/clovis818/run-all is a command-line tool that allows you to execute commands across multiple directories based on a customizable directory pattern.
It is designed for developers and sysadmins who need to run repetitive tasks in multiple project folders, offering options to exclude directories, run commands in parallel, and more.
- gus_massa 2y agoClicky: https://github.com/clovis818/run-all https://github.com/clovis818/run-all
- clovis818 2y agoThanks. I couldn't post with a link, new account.
- brudgers 2y agoTo post a link, the text box must be empty. Mostly, you can submit text xor a link but not both.
- gabrielsroka 2y agoThat hasn't been true for a long time. > If there is a url, text is optional. https://news.ycombinator.com/submit https://news.ycombinator.com/submit
- cadamsdotcom 2y agoCool idea and something pretty common. Thanks for sharing! Hope it comes in handy. There’s also gnu parallel to run many commands in parallel while staying close to the shell. I prefer to generate a list of directories & review manually, rather than trusting a tool which may do far more than expected. The dry run option is a great help here. For anything recurring, it’d be wise to automate - run the script from a scheduled execution system with auditing, logging, monitoring, and alerts (in case the job doesn’t run, or fails, has unexpected output etc.) And for this use case, these days you could also ask an LLM for a one-line shell command that will do what’s needed. Copy-pasting a one-liner is my sweet spot for minimal easily reviewed shell. There is one final nit, and I know it’s not your idea, and you are just following convention - but man do those single-dash-but-long-form arguments trigger my OCD. Anyone know why Golang introduced them?
- bobsmooth 2y agoI hope I never need to use this tool but I can see how it would be helpful.