feat: add --json flag to validate/inspect CLI and switch tests to exhaustive variants

Add `--json` CLI flag for both `validate` and `inspect` subcommands, enabling raw JSON output via `r.toJson().pretty()` instead of formatted report. Update Makefile test targets to use `test_json_exhaustive`, `test_yaml_exhaustive`, and `test_toml_exhaustive` test files. Extend `.gitignore` to exclude the new exhaustive test binaries. Revise README with version header, table of contents, and restructured documentation.
This commit is contained in:
2026-07-08 08:19:01 +00:00
parent 72a7b661db
commit 330adff37c
4 changed files with 1034 additions and 215 deletions
+3 -3
View File
@@ -52,13 +52,13 @@ test-jinja:
$(NIMC) -r $(TEST_DIR)/test_jinja.nim
test-json:
$(NIMC) -r $(TEST_DIR)/test_json.nim
$(NIMC) -r $(TEST_DIR)/test_json_exhaustive.nim
test-yaml:
$(NIMC) -r $(TEST_DIR)/test_yaml.nim
$(NIMC) -r $(TEST_DIR)/test_yaml_exhaustive.nim
test-toml:
$(NIMC) -r $(TEST_DIR)/test_toml.nim
$(NIMC) -r $(TEST_DIR)/test_toml_exhaustive.nim
test-mixed:
$(NIMC) -r $(TEST_DIR)/test_mixed.nim