Tools
fb fmt
Formats .fb files in place.
fb fmt [options] [files and folders]fb fmt formats .fb files in FutureBlitz’s one style. Without files or folders, it formats
the package the current folder is in. A folder’s files are formatted with its folders’, but for
hidden ones and a package’s build/. Lines are as wide as project.toml’s [format] width, or
100.
Formatting changes only the spaces between tokens and where long lines break, so the code means what it did; a file that doesn’t parse is left as it is, with its errors. The formatter lists the style’s rules.
Options
| Option | |
|---|---|
--check | Lists the files it would change, without changing them, and exits with 1 when there are any |
--color <when> | Colors the output: auto, always, or never |
Examples
fb fmt
fb fmt src/ tools/report.fb
fb fmt --check # in CIReport an issue with this page or with FutureBlitz on GitHub.