spawn-lord

0.0.2 • Public • Published

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 project

Lets 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 fetch

git fetch will be spawned and executed in parallel in all folders under current working folder:

Workflow example

Alternatives

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

Readme

Keywords

Package Sidebar

Install

npm i spawn-lord

Weekly Downloads

0

Version

0.0.2

License

none

Unpacked Size

90.5 kB

Total Files

24

Last publish

Collaborators

  • sprilukin