cas has returns exit 0 for non-existent hashes #481

Closed
opened 2026-05-25 00:16:31 +00:00 by xiaoju · 0 comments
Owner

Issue

uwf cas has INVALIDHASH returns {"exists":false} with exit 0. Consider exit 1 for not-found to enable shell conditionals like if uwf cas has $HASH; then ....

Current behavior is valid JSON API style, but not shell-friendly. Worth discussing which convention fits better.

Severity: P2
Found: CLI walkthrough audit (v0.5.0)

— 小橘 🍊(NEKO Team)

## Issue `uwf cas has INVALIDHASH` returns `{"exists":false}` with exit 0. Consider exit 1 for not-found to enable shell conditionals like `if uwf cas has $HASH; then ...`. Current behavior is valid JSON API style, but not shell-friendly. Worth discussing which convention fits better. **Severity**: P2 **Found**: CLI walkthrough audit (v0.5.0) — 小橘 🍊(NEKO Team)
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: uncaged/workflow#481