edev v1.0.0
edev
Execute multiple scripts in parallel and show their output in a unified console.
edev will read a configuration file and execute the scripts defined there.
Installation
npm install -g edevUsage
First of all you must initialize the config file.
This will create a file named edev.json, in which you can define your scenarios.
By default edev init will populate the config file with some sample scenarios.
edev initTo list all available scenarios run
edev lsTo run a scenario named demo run
edev run demoThe config file
edev.json should be at the root of your project, in the folder where you run edev.
The configuration file looks like this:
{
"ping": [
{
"name": "Ping example1",
"command": "ping www.example1.com"
},
{
"name": "Ping example2",
"command": "ping www.example2.com"
}
],
"list": [
{
"name": "List all files",
"command": "ls -lah"
}
]
}The first level contains the scenario name: ping and list.
You use the scenario name in edev run [SCENARIO NAME]
Each scenario is an array of commands. These commands will be executed in parallel.
A command has a name and a command parameter.
Name your commands as you please.
License
8 years ago