0.0.2 • Published 8 years ago
spawn-lord v0.0.2
spawn-lord
Command line utility for hipsters 👓 which helps to automate parallel execution of same command in different folders
Installation
npm install -g spawn-lord
Usage
spawn <command> [<args>]
where <command> is any command and <args> it's arguments.
NOTE that only single command with it's arguments is allowed, you can not use shell features like && or |
Example
assuming you have the following folders structure:
/folder
|-/project1 //git-based project
|-/project2 //also git-based projectLets say you want to call git fetch in both project1 and project2 folders.
You can achieve this by calling the following command:
cd /folder
spawn git fetchgit fetch will be spawned and executed in parallel in all folders under current working folder:

Alternatives
- GNU parallel
find . -name .git -type d -execdir git fetch ';'although it executes command serially