2 stable releases
Uses new Rust 2024
1.1.0 | Apr 11, 2025 |
---|---|
1.0.0 | Apr 10, 2025 |
#49 in Value formatting
256 downloads per month
4KB
Justfile Formatter
just-formatter
is a simple wrapper for just
. Since just --dump
does not support reading files from standard input, unexpected issues may arise when using it as a formatter for editors like Helix Editor.
Installation
Run the following command:
cargo install just-formatter
Usage
Ensure that just
is installed.
Command Line
cat <justfile> | just-formatter
Using in Helix
Example languages.toml
:
[[language]]
name = "just"
auto-format = true
formatter = { command = "just-formatter" }
Skip just
check to accelarate speed
Use --skip-check
/-s
flag. An example helix config:
[[language]]
name = "just"
auto-format = true
formatter = { command = "just-formatter", args = ["--skip-check"] }
Dependencies
~2–11MB
~129K SLoC