Crates.io | metafmt |
lib.rs | metafmt |
version | 0.1.6 |
source | src |
created_at | 2023-06-04 22:04:52.532169 |
updated_at | 2023-06-14 03:21:26.617037 |
description | A CLI for formatting configuration files |
homepage | |
repository | https://github.com/ryanfowler/metafmt |
max_upload_size | |
id | 882552 |
size | 60,185 |
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:
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 <GLOB> Include or exclude files to format
-., --hidden Include hidden files and directories
-l, --list-all List all files processed, including formatted ones
--no-ignore Disable all ignore-related filtering
-p, --parallel <PARALLEL> The approximate number of threads to use
-q, --quiet Do not print info to stderr
-w, --write Rewrite files in-place
-h, --help Print help
-V, --version Print version