pre-commit hook for git to check CFEngine syntax

Sometimes I am not so disciplined to run cf-promises on my policy before I commit it. I make a small change and I think I’m golden, but inevitably that breaks things. I wrote a simple commit hook to check policy syntax and stop you from shooting yourself in the foot. You can find  the pre-commit script over on my github account. I hope you find it useful.


Leave a Reply

Your email is never shared.Required fields are marked *

To submit your comment, click the image below where it asks you to...
Clickcha - The One-Click Captcha