Skip to main content

Module executor

Module executor 

Source
Expand description

Subprocess runner for hook commands.

Hooks are executed as shell subprocesses. The command receives JSON on stdin and communicates results via exit codes and optional JSON on stdout.

Exit codes:

  • 0: Success (operation proceeds)
  • 2: Block (operation is denied)
  • Other: Error (logged, operation proceeds)

Structsยง

HookExecutor
Executes hook commands as subprocesses.
HookResult
Result from executing a single hook command.