diff --git a/README.md b/README.md index 6bd23c8..3635344 100644 --- a/README.md +++ b/README.md @@ -222,7 +222,7 @@ functions. -`treefmt-nix` currently supports 126 formatters: +`treefmt-nix` currently supports 128 formatters: * [actionlint](programs/actionlint.nix) * [aiken](programs/aiken.nix) @@ -278,6 +278,7 @@ functions. * [hclfmt](programs/hclfmt.nix) * [hlint](programs/hlint.nix) * [hujsonfmt](programs/hujsonfmt.nix) +* [hurlfmt](programs/hurlfmt.nix) * [isort](programs/isort.nix) * [jsonfmt](programs/jsonfmt.nix) * [jsonnet-lint](programs/jsonnet-lint.nix) diff --git a/examples/formatter-hurlfmt.toml b/examples/formatter-hurlfmt.toml new file mode 100644 index 0000000..f47bb66 --- /dev/null +++ b/examples/formatter-hurlfmt.toml @@ -0,0 +1,6 @@ +# Example generated by ../examples.sh +[formatter.hurlfmt] +command = "hurlfmt" +excludes = [] +includes = ["*.hurl"] +options = ["--in-place"] diff --git a/programs/hurlfmt.nix b/programs/hurlfmt.nix new file mode 100644 index 0000000..bda4ab2 --- /dev/null +++ b/programs/hurlfmt.nix @@ -0,0 +1,16 @@ +{ mkFormatterModule, ... }: +{ + meta.maintainers = [ "kpbaks" ]; + + imports = [ + (mkFormatterModule { + name = "hurlfmt"; + package = "hurl"; + mainProgram = "hurlfmt"; + args = [ "--in-place" ]; + includes = [ + "*.hurl" + ]; + }) + ]; +}