Setup shell hook definition
Parameters | name | name of hook for error messages |
| path | absolute path to executable file |
| numparam | number of requirements parameters |
| pre_exec_callback | closure for setup before execution
Defaults to None. Takes in the variable argument list from the
execute functions and returns a modified argument list for the
shell hook. |
| post_exec_callback | closure for cleanup after execution
Defaults to None. Takes in a boolean for hook success and the
modified argument list and returns the final hook return value
if applicable |
| cwd | working directory to switch to when executing the hook |