ash/lib/mix/tasks/ash.reset.ex

14 lines
422 B
Elixir
Raw Normal View History

defmodule Mix.Tasks.Ash.Reset do
@moduledoc """
Runs all tear down tasks for any extension on any resource/api in your application, followed by setup tasks.
"""
use Mix.Task
@shortdoc "Runs all tear down & setup tasks for any extension on any resource/api in your application."
def run(argv) do
2023-09-05 05:38:27 +12:00
Mix.Task.run("compile")
Mix.Task.run("ash.tear_down", argv)
Mix.Task.run("ash.setup", argv)
end
end