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
def main(argv \\ []) do
IO.puts("🐶")
IO.puts(".... running husky hook")
{stderr_stdout, code} = System.cmd("mix", ["husky.execute" | argv])
IO.puts(stderr_stdout)
System.halt(code)
end
end