GitHooks.Tasks.Mix.new
You're seeing just the function
new
, go back to GitHooks.Tasks.Mix module for more information.
Link to this function
new(arg)
Specs
new({:mix_task, Mix.Task.task_name(), [any()]} | Mix.Task.task_name()) :: t()
Creates a new Mix task struct.
This function expects a tuple or triple with :mix_task
, the task name and
the task args.
Example
iex> Elixir.GitHooks.Tasks.Mix.new({:mix_task, :test, ["--failed"]})
%Elixir.GitHooks.Tasks.Mix{task: :test, args: ["--failed"]}