mirror of
https://github.com/tweag/ormolu.git
synced 2024-09-11 21:27:46 +03:00
Mention the git ls-files trick in the readme
This commit is contained in:
parent
34bdf62429
commit
77debd145f
@ -117,6 +117,12 @@ Use `find` to format a tree recursively:
|
||||
$ ormolu --mode inplace $(find . -name '*.hs')
|
||||
```
|
||||
|
||||
Or find all files in a project with `git ls-files`:
|
||||
|
||||
```console
|
||||
$ ormolu --mode inplace $(git ls-files '*.hs')
|
||||
```
|
||||
|
||||
To check if files are are already formatted (useful on CI):
|
||||
|
||||
```console
|
||||
|
Loading…
Reference in New Issue
Block a user