dhall-lang / dhall-haskell

Maintainable configuration files
https://dhall-lang.org/
BSD 3-Clause "New" or "Revised" License
912 stars 213 forks source link

Allow `dhall format` to take multiple files as arguments #2498

Closed srid closed 1 year ago

srid commented 1 year ago

cf. https://github.com/numtide/treefmt-nix/issues/49

Would you be open to a PR for this?

SiriusStarr commented 1 year ago

dhall format does take multiple files as arguments, unless I am not understanding what you mean.

Usage: dhall format [--transitive] [--check] [FILES]

  Standard code formatter for the Dhall language

Available options:
  --transitive             Modify the input and its transitive relative imports
                           in-place
  --check                  Only check if the input is formatted
  FILES                    Read expression from files instead of standard input
  -h,--help                Show this help text
srid commented 1 year ago

Ah, yes, as of 1.39.0. Thanks

https://github.com/dhall-lang/dhall-haskell/pull/2169