Skip to content

feat(cli): add --check validation-only mode#55

Open
DiogoRibeiro7 wants to merge 2 commits intotoon-format:mainfrom
DiogoRibeiro7:feat/cli-check-mode
Open

feat(cli): add --check validation-only mode#55
DiogoRibeiro7 wants to merge 2 commits intotoon-format:mainfrom
DiogoRibeiro7:feat/cli-check-mode

Conversation

@DiogoRibeiro7
Copy link
Contributor

Summary

  • add a new --check CLI flag to validate input without emitting converted output
  • return non-zero when validation fails while preserving existing encode/decode error handling
  • reject invalid flag combination: --check with --output
  • add CLI integration tests for valid/invalid JSON and TOON in check mode
  • document --check usage in README

Testing

  • uv run pytest tests/test_cli.py -q (36 passed)

@DiogoRibeiro7 DiogoRibeiro7 requested review from a team and johannschopplich as code owners March 19, 2026 14:45
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