reactor_req/lib/mix/tasks/reactor_req.install.ex
James Harton 634c4159be
All checks were successful
continuous-integration/drone/push Build is passing
improvement: Add igniter installer. (#8)
Reviewed-on: #8
Co-authored-by: James Harton <james@harton.nz>
Co-committed-by: James Harton <james@harton.nz>
2024-08-14 13:48:26 +12:00

16 lines
345 B
Elixir

defmodule Mix.Tasks.ReactorReq.Install do
@moduledoc """
Installs Reactor.Req into a project. Should be called with `mix igniter.install reactor_req`.
"""
alias Igniter.{Mix.Task, Project.Formatter}
use Task
@doc false
@impl Task
def igniter(igniter, _argv) do
igniter
|> Formatter.import_dep(:reactor_req)
end
end