Part of #17. Design: [`docs/design.md`](https://github.com/DarkCollective/relix-cli/blob/develop/docs/design.md) §3. ## Scope `relix fmt [SCRIPT...]` prints a script canonically, using the engine's statement printer, the one behind `Relix.definitions()`. - `--glyphs` / `--keywords` choose the operator spelling. - `-w` rewrites files in place, as `gofmt -w` does. - `--check` exits 1 if any file would change, for CI. Comments must survive. If the printer drops them, this slice raises a relix-core issue before shipping rather than losing them. ## Dependencies - S1 (#4). ## Acceptance - Formatting is idempotent. - Parse → fmt → parse gives the same statements over every example script. - `--check` exit codes. - Comments are preserved.
Activity
Add relix fmt: print scripts canonically, keeping their comments
github-actions commentedon Oct 8, 2026
Done in #36, merged to develop (872e5dd).
Add relix fmt: print scripts canonically, keeping their comments