metafmt
is a highly performant and opinionated formatter for the following
configuration and text formats:
.json
, .jsonc
, .hjson
, .jwcc
).md
).sql
).toml
).yaml
, .yml
)Requirements:
sh
cargo install metafmt --locked --force
> metafmt -h
``` A CLI for formatting configuration files
Usage: metafmt [OPTIONS] [PATH]
Arguments: [PATH] A file or directory to format [default: ./]
Options:
-d, --diff Show a diff for each non-formatted file
-g, --glob