Skip to main content

Module validate

Module validate 

Source
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§

ValidateArgs
Arguments for mars validate.
ValidateDiagnostic
A single diagnostic in JSON output.
ValidateReport
JSON output envelope for mars validate --json.

Functions§

run
Run mars validate.