mix selecto.domain.export (selecto_mix v0.4.6)

Export a normalized Selecto domain JSON artifact.

The task loads a domain module, calls domain/0, normalizes the map through Selecto.Domain.normalize/1, and writes a JSON artifact containing the canonical normalized domain plus diagnostics. Runtime-only terms such as function captures are represented as explicit placeholder metadata so the artifact remains JSON-safe.

Examples

mix selecto.domain.export MyApp.SelectoDomains.ProductDomain

mix selecto.domain.export MyApp.SelectoDomains.ProductDomain --output priv/selecto/product.normalized.json