Expand description
mars validate — dry-run compiler that reports diagnostics without writing.
Runs the same reader/compiler pipeline as mars sync --diff but stops
before any writes and reports diagnostics with structured output options.
Output modes:
- Normal: print diagnostics, exit 0 if clean, exit 1 if errors present.
--strict: escalate warnings to errors (missing env vars, etc.).--json: emit diagnostics as structured JSON for tooling.
Structs§
- Validate
Args - Arguments for
mars validate. - Validate
Diagnostic - A single diagnostic in JSON output.
- Validate
Report - JSON output envelope for
mars validate --json.
Functions§
- run
- Run
mars validate.