UNPKG
cmbo
Version:
latest (0.1.0)
0.1.0
Run multiple processes in one shell + stop all with ctrl+c
github.com/harryhope/cmbo
harryhope/cmbo
cmbo
/
index.js
17 lines
(15 loc)
•
325 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env node
const
program =
require
(
'commander'
)
const
{spawn} =
require
(
'child_process'
) program .
version
(
'0.1.0'
) .
arguments
(
'<commands...>'
) .
action
(
(
commands
) =>
{ commands.
map
(
(
command
) =>
spawn
(command, {
stdio
:
'inherit'
,
shell
:
true
}) ) }) .
parse
(process.
argv
)