rsvp-cli
v0.0.3
Published
Automatic responder to command line prompts
Downloads
4
Readme
RSVP-CLI
Runs a specified command and attempts to answer the questions automatically. The responder is experimental so please be careful!
Installation
npm install -g rsvp-cli
##Usage
Add a json file like so
{
"cmd": "node test/prompt",
"responses": [
{
"regex": "response 1",
"response": "yes"
},
{
"regex": "response 2",
"response": "no"
},
{
"regex": "response 3",
"response": "maybe"
}
]
}
Execute the command like below with a path to the above file
rsvp-cli -f=test/commands.json