It would be nice if users can create their own custom functions to handle the data event.
I'm executing a command that checks my php files for syntax errors.
I would like to be able parse each output as it comes and check if there are no errors, otherwise exit the process.
Hmm I'd prefer if this wasn't added to grunt-exec. For the use case you propose, I would suggest just modifying your shell command to look for the parse error itself and exit with 1 if it's found.
It would be nice if users can create their own custom functions to handle the data event. I'm executing a command that checks my php files for syntax errors. I would like to be able parse each output as it comes and check if there are no errors, otherwise exit the process.
Example