Skip to content

fix: return usage error for unknown schema commands - #18

Merged
voska merged 1 commit into
mainfrom
fix/schema-unknown-command
Oct 10, 2026
Merged

voska merged 1 commit into
mainfrom
fix/schema-unknown-command

Conversation

@voska

@voska voska commented Oct 10, 2026

Copy link
Copy Markdown
Owner

qbo schema nosuch --json returned an error-shaped object with exit status 0. Return the existing usage error instead, so unknown schema commands exit 2, print the diagnostic to stderr, and leave stdout empty.

Add a subprocess regression test through main for human, JSON, and plain output. Full schema output and all 17 known command schemas are unchanged.

Validation: the regression test failed before the fix in all three modes; make ci passes; 54 valid schema invocations match the pre-change output byte for byte.

@voska
voska merged commit 2e3440d into main Oct 10, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant