fix: cas has now returns exit 1 for non-existent hashes #482

Merged
xiaoju merged 1 commits from fix/481-cas-has-exit-code into main 2026-05-25 01:18:08 +00:00

1 Commits

Author SHA1 Message Date
xiaoju 984e6ae56d fix: cas has now returns exit 1 for non-existent hashes
Changed the exit behavior of 'uwf cas has' to return exit code 1 when
a hash doesn't exist, while preserving the JSON output {exists:false}.
This enables proper use in shell conditionals like 'if uwf cas has $HASH'.

Fixes #481
2026-05-25 00:47:39 +00:00