Remote usage, and script files inheritance #681
Unanswered
createchange
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hey @createchange!
I am glad to see that remote feature is being used. Could you share a small example of a configuration you are trying to create with the tool and the scripts that use it? Maybe this is still possible to pass, let's say, {staged_files} to a script or transform the scripts to commands. Please, note that you can use the following syntax: pre-commit:
commands:
multiline:
run: |
echo 'this is pretty similar to a script'
echo 'a bit limited'
if test 1 -eq 1; then
echo 'but still working'
fi |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I have a few questions:
lefthook install -f
?{staged_files}
values through to a bash runner? Similarly, can I pass through a glob that contains a subset of files?Sorry for the dump, but evaluating implementing with our Engineering team, and need to capture as much info as I can. A dump of questions seemed like the quickest path forward.
Sincerely,
Jonathan
Beta Was this translation helpful? Give feedback.
All reactions