Open
Description
Related issues in timeline order:
- json-diff cli always returns error shell status code #51
=> use exit code 0 - json-diff cli never return exit code 1 in shell #88
=> use exit code 1
I think that the convention accross program is that Exit code 1 is use for errors.
If you want to use it in a CI, for instance, it will always fail.
Another approach would be to keep the exit code 0 and provide more details output on if their is changes or not, or catch real errors and then exit code 1.
Using exit code was cheap and fast, but it doesn't really follow the usage of command line in general.
What do you think?
For reference:
Metadata
Metadata
Assignees
Labels
No labels