View Source mix git_hooks.run (git_hooks v0.7.4)
Runs all the configured mix tasks for a given git hook.
Any git hook is supported.
Examples
You can run any hook by running mix git_hooks.run hook_name. For example:
mix git_hooks.run pre_commitYou can also all the hooks which are configured with mix git_hooks.run all.
Summary
Types
Run options
Types
Functions
Runs a task for a given git hook.
The task can be one of three different types:
{:cmd, "command arg1 arg2"}: Runs a command.{:file, "path_to_file"}: Runs an executable file."command arg1 arg2": Runs a simple command, supports no options.
The first two options above can use a third element in the tuple, see here more info about the options.