ForceCLI/force

Force Push exit status

Closed this issue · 6 comments

I'm trying to utilize Force as an alternative to Ant for some internal automation. One thing I've run into is that push doesn't exit with the correct status code in the event of failures. I'm not sure if this is the desired behavior, but it makes automation a bit difficult since you can't fail based on exit code. Ideally, if there are any failures, force should exit with a non-zero status code. Would there be any interest in a PR for this or has this already been decided against?

I've been running with this change for a couple weeks: 29278c9

@cwarden that looks like exactly what I want. Any plans for submitting a PR for that?

Just needed a reminder, I guess. Thanks, @ethanfrogers. I opened #381.

Yes, actually the ErrorAndExit does return a non-zero exit code. 👍

I updated force test as well in #382.