Skip to content

Commit 89f275f

Browse files
committed
Adds directory/package-based versions of hooks
1 parent c65100f commit 89f275f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,17 +113,20 @@ Hooks named `'*-repo-*'` only run once (if any matching files are staged). They
113113
#### User args
114114
Generally, repo-based hooks DO accept user-args.
115115

116-
### Repo-Hook Suffixes
116+
#### Repo-Hook Suffixes
117117
- `*-repo` : Hook runs with no target argument (good for adding custom arguments / targets)
118118
- `*-repo-dir` : Hook runs using `'./...'` as target.
119119
- `*-repo-pkg` : Hook runs using `'$(go list)/...'` as target.
120120

121+
--------------
121122
### Fix Suffix
122123
Hooks named `'*-fix'` fix (modify) files directly, when possible.
123124

125+
-----------
124126
### Aliases
125127
Consider adding aliases to longer-named hooks for easier CLI usage.
126128

129+
--------------------------
127130
### Useful Hook Parameters
128131
```
129132
- id: hook-id

0 commit comments

Comments
 (0)