1 unstable release

0.1.0 Nov 10, 2022

#16 in #filenames

MIT license

6KB
131 lines

copefmt

copefmt is the copium code formatter for languages that don't have any better options.

How to use

copefmt read from stdin and writes to stdout by default.

echo '*[]{...,foo->,bar->{...,baz->}}' | copefmt
*[]{
    ...,
    foo->,
    bar->{
        ...,
        baz->
    }
}

But filenames can be provided as arguments.

copefmt --input data/simple.groq --output formatted_simple.groq

Installation

Install from source: cargo install --path .

Dependencies

~1.1–1.7MB
~32K SLoC