Some workflows might be handled differently if run independently rather than when run using RunCommands. For example, AWS CloudFront invalidations have a free tier but are charged for after that. Consequently, it makes sense to create a separate invalidation if testing one command file, but if multiple files can be invalidated in a group, charges can be avoided. The command file logic might have something like:
If not running from RunCommands
do the invalidation
# Otherwise, the invalidation occurs in the main command file.
Some logic is already in place to handle the exit code for a command file so hopefully the enhancement would not be too difficult.
Some workflows might be handled differently if run independently rather than when run using
RunCommands
. For example, AWS CloudFront invalidations have a free tier but are charged for after that. Consequently, it makes sense to create a separate invalidation if testing one command file, but if multiple files can be invalidated in a group, charges can be avoided. The command file logic might have something like:Some logic is already in place to handle the exit code for a command file so hopefully the enhancement would not be too difficult.