gabyx / Githooks

🦎 Githooks: per-repo and shared Git hooks with version control and auto update. [✩Star] if you're using it!
MIT License
102 stars 4 forks source link

feat: Add CLI command to execute inside the configured container. #134

Closed gabyx closed 7 months ago

gabyx commented 7 months ago

It would be good to easily be able to execute something inside the configured container. We have scripts in githooks/scripts/ where if we would place a hook execution config as in https://github.com/gabyx/Githooks?tab=readme-ov-file#running-hooks-in-containers we could simply execute side-car scripts such as format... etc.

git hooks exec --containerized "ns::githooks-config/scripts/format-docs-all.yaml"