mix git_hooks.run.run

You're seeing just the function run, go back to mix git_hooks.run module for more information.


run([String.t()]) :: :ok | no_return()

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.