# SPDX-FileCopyrightText: 2025 reactor_process contributors # # SPDX-License-Identifier: MIT if Code.ensure_loaded?(Igniter) do defmodule Mix.Tasks.ReactorProcess.Install do @moduledoc """ Installs Reactor.Process into a project. Should be called with `mix igniter.install reactor_process`. """ alias Igniter.{Mix.Task, Project.Formatter} use Task @doc false @impl Task def igniter(igniter) do igniter |> Formatter.import_dep(:reactor_process) end end else defmodule Mix.Tasks.ReactorProcess.Install do @moduledoc """ Installs Reactor.Process into a project. Should be called with `mix igniter.install reactor_process`. """ use Mix.Task def run(_argv) do Mix.shell().error(""" The task 'reactor_process.install' requires igniter to be run. Please install igniter and try again. For more information, see: https://hexdocs.pm/igniter """) exit({:shutdown, 1}) end end end