Xamal.Commands.Hook (xamal v0.3.1)

Copy Markdown View Source

Hook script execution commands.

Hooks are shell scripts in the hooks_path directory (default: .xamal/hooks).

Summary

Functions

Build environment variables to pass to hook scripts.

Check if a hook file exists.

Build the command to run a hook script locally.

Functions

env(config, details \\ %{}, attrs \\ %{})

Build environment variables to pass to hook scripts.

hook_exists?(config, hook_name)

Check if a hook file exists.

run(config, hook_name)

Build the command to run a hook script locally.