Skip to content

Commit 0d407dd

Browse files
committed
📝 Add More Usage Examples
1 parent b20954a commit 0d407dd

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

.github/workflows/goreleaser.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
name: goreleaser
2-
32
on:
43
push:
54
tags:
65
- "*"
7-
86
permissions:
97
contents: write
10-
118
jobs:
129
goreleaser:
1310
runs-on: ubuntu-latest

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,20 @@ You can also use the binaries from
4949
cat a.yaml | yamlfmt > b.yaml
5050
```
5151

52+
- To format every file in your current directory and subdirectorys:
53+
54+
- Using `find`:
55+
56+
```bash
57+
yamlfmt -w $(find -name "*.yaml")
58+
```
59+
60+
- Using `fd`:
61+
62+
```bash
63+
yamlfmt -w $(fd -H -e yaml)
64+
```
65+
5266
### Editor Integration
5367

5468
- Neovim / Vim

0 commit comments

Comments
 (0)