Schedule expressions to run
cmd_on_start(command, ...)cmd_on_exit(command, ...)
cmd_on_fail(command, ...)
cmd_on_succeed(command, ...)
cmd_on_start
: The command
object itself, with the start code updated.
cmd_on_exit
: The command
object itself, with the exit code updated.
cmd_on_fail
: The command
object itself, with the failure code updated.
cmd_on_succeed
: The command
object itself, with the successful code
updated.
A command
object.
The expressions input will be captured with
enquos()
. If your expressions depend on global data, you
may want to unquote objects with !!
to prevent
unintended changes due to delayed evaluation.
cmd_on_start
: Expression to be evaluated when the command started.
cmd_on_exit
: Expression to be evaluated when the command finished.
cmd_on_fail
: Expression to be evaluated when the command failed.
cmd_on_succeed
: Expression to be evaluated when the command succeeded.
cmd_on_start()
: define the startup code of the command
cmd_on_exit()
: define the exit code of the command
cmd_on_fail()
: define the failure code of the command
cmd_on_succeed()
: define the successful code of the command