mix dextrin.format (Dextrin v0.1.0)

Copy Markdown View Source
$ mix dextrin.format data.dxn --mode pretty
$ mix dextrin.format data.dxn --mode condense
$ mix dextrin.format data.dxn --mode pretty --in-place

Defaults to --mode pretty. --in-place rewrites PATH; otherwise prints to stdout.

Comments are always dropped, not "stripped by default" — .dxn's lexer discards them as trivia before the parser (and therefore any value this formatter could reprint) ever sees them. There is no mode that preserves them; that would need a second, independent re-lexing pipeline this library doesn't have (see Dextrin.Text.Formatter's own moduledoc).