Skip to content

S8: relix fmt — canonical script printing #12

Closed

Description

@david-Darkcollective

Part of #17. Design: 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

Acceptance

  • Formatting is idempotent.
  • Parse → fmt → parse gives the same statements over every example script.
  • --check exit codes.
  • Comments are preserved.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:cliThe relix command itselfbacklogNot yet scheduledenhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions