It could be useful to have an option to stop multiline scripts if any given line fails.
In powershell this is done with $ErrorActionPreference = "Stop";
In bash, with set -eu.
One problem is that native executions in powershell still pass, but perhaps that is an allowable compat subset to at least get close to the desired behaviour.
This could either be an environment variable like CHOMP_CMD_STOP_ON_ERR = '1' or a direct field on the task.
It could be useful to have an option to stop multiline scripts if any given line fails.
In powershell this is done with
$ErrorActionPreference = "Stop";
In bash, with
set -eu
.One problem is that native executions in powershell still pass, but perhaps that is an allowable compat subset to at least get close to the desired behaviour.
This could either be an environment variable like
CHOMP_CMD_STOP_ON_ERR = '1'
or a direct field on the task.