Comment 3 for bug 1001004

Revision history for this message
Daniel Nichter (daniel-nichter) wrote :

Perhaps an option called --plugin which takes a script that can define various hooks like:

after_collect() {
   <my code>
}

after_sleep() {
   <my code>
}

This would allow us to implement as many hooks in as many places as we want with the same option.

The tool would then be like:

after_collect() {
   # Default stub, does nothing
   :
}
...etc...

. "$OPT_PLUGIN"

after_collect ... # call plugin's if defined, else default stub