just-formatter

Crates.iojust-formatter
lib.rsjust-formatter
version1.1.0
created_at2025-04-10 04:09:47.941636+00
updated_at2025-04-11 00:04:23.154128+00
descriptionFormat justfile from stdin to stdout.
homepage
repositoryhttps://github.com/eli-yip/just-formatter
max_upload_size
id1627634
size8,802
Jason1 (eli-yip)

documentation

README

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"] }
Commit count: 4

cargo fmt