-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Explain how "run" runs whatever it is its value represents #800
Comments
For macOS, Linux, FreeBSD the commands in So, if you use unix-like systems you can use Bourne shell syntax including pipes,
Yes I thought it was intuitive that commands should be one-liners, and scripts should live in a separate directory lefthook tracks. But it makes sense to write the docs about it, so thank you for creating this issue 🙏 |
⚡ Summary
As far as I could see, the
run
documentation doesn't explain what the value for that configuration is beyond a "command", nor how Lefthook actually runs it, e.g direct invocation, thoughsh
, throughbash
, etc.Value
It's really difficult to understand what kind of command can be used for
run
, e.g. can pipes|
be used? Or&&
and||
? Can the exit code$?
of a command be checked withif
? Are scripts even supported at all? What's the behavior of multiple lines (usingrun: |
)? Will execution automatically stop at the first error? etc…Behavior and configuration changes
Documenting the current behavior.
The text was updated successfully, but these errors were encountered: