-
Notifications
You must be signed in to change notification settings - Fork 220
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: test sh syntax in files option and fix skip_output parsing
- Loading branch information
Showing
4 changed files
with
51 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
exec git init | ||
exec lefthook install | ||
exec git config user.email "[email protected]" | ||
exec git config user.name "Your Name" | ||
|
||
exec lefthook run echo_files | ||
stdout '1.txt 10.txt' | ||
|
||
-- lefthook.yml -- | ||
skip_output: | ||
- meta # Skips lefthook version printing | ||
- summary # Skips summary block (successful and failed steps) printing | ||
- empty_summary # Skips summary heading when there are no steps to run | ||
- success # Skips successful steps printing | ||
- failure # Skips failed steps printing | ||
- execution_info # Skips printing `EXECUTE > ...` logging | ||
- skips | ||
|
||
echo_files: | ||
commands: | ||
echo: | ||
files: ls | grep 1 | ||
run: echo {files} | ||
|
||
-- 1.txt -- | ||
1.txt | ||
|
||
-- 10.txt -- | ||
10.txt | ||
|
||
-- 20.txt -- | ||
20.txt |