Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
support exit code for custom commands #30
I was experimenting with adding a set of validation commands to my cue configuration, in
Is there a way of achieving this at present? Supporting passing through the exit codes would make integration of cue commands into pipelines easier.
Yes, it makes sense to at least return a non-zero error code on failure. To what extent does it need to be the same code? As there may be multiple tasks executed concurrently, returning the code of the failed first task may result in indeterministic behavior, so simply returning 1, for instance, may be a better approach.