Détail du package

shell-executor

royriojas236MIT6.0.1

A small nodejs module to execute shell commands in parallel

parallel shell, shell, parallel, commands

readme

NPM Version Build Status

shell-executor

A small nodejs module to execute shell commands in parallel

Motivation

Heavily inspired by parallelshell. The main reason this module exists is that parallelshell was somehow leaving zombie processes. This version will print the command that you can run in case you detect the program didn't kill all the process it created.

Install

npm i -g shell-executor

Usage

# or sx as it is alias for shell-exec
Usage: shell-exec [options] cmd1, cmd2, ... cmdn

Options:
  -d, --dashboard   Show the processes in a nice dashboard if space allows it. No more than 9 commands are allowed in this mode. Requires the install of blessed@0.1.81 and blessed-contrib@4.7.5
  -b, --bail        Stop execution as soon as one of the task exit with an exit code different than 0 or an error happened
  -o, --sortOutput  Sort the stdout and stderr output from the commands
  -h, --help        Show this help
  -v, --version     Outputs the version number
  -q, --quiet       Show only the summary info - default: false
  --colored-output  Use colored output in logs
  --stack           if true, uncaught errors will show the stack trace if available

Examples

# execute the npm commands lint, test and watch in parallel
shell-exec 'npm run lint' 'npm run test' 'npm run watch'

Use colored output

# execute the npm commands lint, test and watch in parallel
shell-exec --colored-output 'npm run lint' 'npm run test' 'npm run watch'

Changelog

changelog

shell-executor - Changelog

v6.0.1

  • Refactoring

v6.0.0

v5.0.0

v4.0.0

Breaking change

  • Refactoring
    • blessed and blessed-contrib modules are optional - 2c292e0, Roy Riojas, 04/02/2017 23:41:52

v3.1.3

v3.1.2

v3.1.1

v3.1.0

v3.0.0

v2.0.6

  • Bug Fixes

v2.0.5

v2.0.4

  • Refactoring
    • duration is formatted from shell-executor module - 1eb98c1, Roy Riojas, 03/01/2017 20:29:20

v2.0.3

v2.0.2

  • Features
    • Add color to processes using stdin pipe instead of inherit stdio - 8b96a7d, Roy Riojas, 03/01/2017 18:14:49

v2.0.1

  • Build Scripts Changes

v2.0.0

  • Features
    • add options to control the execution flow, bail and sortOutput - 6ea3800, Roy Riojas, 02/01/2017 05:20:56

v1.0.0

v0.6.0

v0.4.0

  • Refactoring
    • Add duration for the execution of each command - 660866c, Roy Riojas, 02/01/2017 02:19:30

v0.3.2

  • Enhancements
    • Update clix to get better error management - 5b55ba4, royriojas, 17/08/2015 05:29:40

v0.3.1

v0.3.0

  • Refactoring
    • use spawnly as a way to normalize the child_process.spawn utility interface - de9c0aa, royriojas, 30/07/2015 18:27:25

v0.2.4

  • Bug Fixes
    • properly pass the current working directory to the spwaned script - ace2c91, royriojas, 30/07/2015 17:57:31

v0.2.3

  • Features
    • Add support for commands in sequence, using &&. Fixes #2 - 50bd398, royriojas, 30/07/2015 04:24:40

v0.2.2

  • Build Scripts Changes
    • Update dependencies and include npm scripts for bumping versions - 3d6279c, royriojas, 30/07/2015 03:08:13
  • remove bumpery in favor of npm scripts - 6fce0eb, royriojas, 30/07/2015 03:06:29

v0.2.1

  • Documentation
    • Add documentation about the removal of the colored output. Fixes #1 - 91c2d4f, royriojas, 03/07/2015 18:52:46
  • Build Scripts Changes

v0.1.1

  • Build Scripts Changes

v0.1.0