Version: 1.1.0
mojo format
Rewrite Mojo files into the standard layout.
Essentials
- Run it on a file or a directory.
- Four-space indents and a consistent import layout are the point.
- Format before you review a change.
- The formatter does not rename identifiers.
Example
$ mojo format .
Keep in mind
If the formatter and your editor disagree, the formatter is the one CI should run.