Skip to main content

Module format

Module format 

Source
Expand description

Output formatters for diff results.

Two formatters are exposed:

  • TableFormatter — human-readable, multi-resource indented layout matching IMPLEMENTATION.md §7.4. v0.1.0 ships without ANSI colors; the global --no-color flag is therefore a no-op until a future cosmetic pass adds color.
  • JsonFormatter — frozen v1 schema for CI consumption (§12). The wire shape carries an explicit version: 1 field so consumers can branch on a future schema bump.

The wire types in json are deliberately separate from the domain types in crate::resource / crate::diff. Refactoring a domain type cannot accidentally change the public JSON contract.

Modules§

json
JSON formatter for diff results.
table
Human-readable table formatter for diff results.

Structs§

JsonFormatter
TableFormatter

Enums§

OutputFormat

Traits§

DiffFormatter
Format a DiffSummary for display. Implementations are stateless unit structs.