Packages

Git hooks made easy. Husky can prevent bad git commit, git push and more 🐶 ❤️ woof! - Elixir equivalent of the husky npm package

Current section

Files

Jump to
husky lib escript.ex
Raw

lib/escript.ex

defmodule Husky do
@moduledoc """
escript that invokes `mix husky.execute`
"""
@doc """
escript entry point. The correct shell exit code is preserved
"""
def main(argv \\ []) do
{stderr_stdout, code} = System.cmd("mix", ["husky.execute" | argv])
IO.puts(stderr_stdout)
System.halt(code)
end
end