Added the flag strict for the bin/chapi status and bin/chapi diff commands.
This will help to get meaningful exit-code like below:
bin/chapi status --strict will return exit-code 1 if there are changes to commit, otherwise 0.
bin/chapi diff --strict will return exit-code 1 if there are differences between jobs, otherwise 0.
Added the flag
strict
for thebin/chapi status
andbin/chapi diff
commands.This will help to get meaningful exit-code like below:
bin/chapi status --strict
will return exit-code 1 if there are changes to commit, otherwise 0.bin/chapi diff --strict
will return exit-code 1 if there are differences between jobs, otherwise 0.