Add -R, --recursive
option for implying --mode inplace
and all *.hs
file under given directory
#1086
Labels
duplicate
This issue or pull request already exists
Is your feature request related to a problem? Please describe.
For modern Haskell usage, reformatting a whole haskell project is certainly more often then single file. according to the
README.md
,ormolu --mode inplace $(find . -name '*.hs')
orormolu --mode inplace $(git ls-files '*.hs')
is too long and inconvenient for user to input.Describe the solution you'd like
A
-R
or--recursive
option would works. It implies--mode inplace
and the path on the end will be the directory to make recursive reformatting.Unlike
ormolu --mode inplace $(find . -name '*.hs')
,-R
can identify scm repository. If the path is located inside Git workspace or Mercurial workspace. It can automatically ignore the files which is ignored by.gitignore
spec.Describe alternatives you've considered
It would be good to referencing
black
for python https://github.com/psf/blackAdditional context
The final functionality should like this
The text was updated successfully, but these errors were encountered: