captainhookphp / captainhook

CaptainHook is a very flexible git hook manager for software developers that makes sharing git hooks with your team a breeze.
http://captainhook.info
MIT License
996 stars 86 forks source link

Allow specifying multiple hooks that will be limited during install command #203

Closed alexandrmazur96 closed 1 year ago

alexandrmazur96 commented 1 year ago

Currently, only one hook per install command can be installed.

So we need to specify multiple lines in our composer scripts. Something like:

{
   "scripts": {
        "build-dev": [
            "@php vendor/bin/captainhook install -f -s pre-push",
            "@php vendor/bin/captainhook install -f -s pre-commit"
        ]
    }
}

This process can be optimized if we allow specifying multiple hooks to install via comma, for example.

sebastianfeldmann commented 1 year ago

Fixed in 5.15.3 (released 5min ago)