Closed jhorbulyk closed 4 years ago
test/fixture.json
{ "fixtures": { "successfulFixture": { "cfg": {}, "msg": { "body": {} } }, "failFixture": { "cfg": {}, "msg": { "body": {} } } } }
elasticio cmp:process -a createPet -x someInvalidFixture
elasticio cmp:process -a someInvalidAction -x successfulFixture
elasticio cmp:exec -a createPet -x successfulFixture -f someInvalidFunction
Currently, a warning is printed and then the execution falls back to prompt the user for the invalid input.
The program should print an error and exit with a non-zero exit code.
Steps to Reproduce
test/fixture.json
file with a template fixture:elasticio cmp:process -a createPet -x someInvalidFixture
elasticio cmp:process -a someInvalidAction -x successfulFixture
elasticio cmp:exec -a createPet -x successfulFixture -f someInvalidFunction
Current Behavior
Currently, a warning is printed and then the execution falls back to prompt the user for the invalid input.
Desired Behavior
The program should print an error and exit with a non-zero exit code.