sociomantic-tsunami / neptune

Sociomantic library versioning definitions, guides, and tools
Boost Software License 1.0
1 stars 15 forks source link

Implement hook system #229

Open mathias-baumann-sociomantic opened 6 years ago

mathias-baumann-sociomantic commented 6 years ago

To implement https://github.com/sociomantic-tsunami/neptune/issues/48 in an language agnostic way, a generic hook system would be useful

mathias-baumann-sociomantic commented 6 years ago

I can think of four stages for such a hook system

mathias-baumann-sociomantic commented 6 years ago

So I am thinking neptune just checks for the directory neptune-hooks/ and runs files matching it's pattern.

The pattern would be

The files are expected to be executable and will be run by bash, so they can contain a shebang line (which means they could even just be d files