mirror of
https://github.com/ash-project/ash.git
synced 2024-09-20 05:23:03 +12:00
improvement: add ash.rollback
mix task
chore: fix some naming/mix task steps
This commit is contained in:
parent
4f26773fe0
commit
46ed97dd10
6 changed files with 4 additions and 0 deletions
|
@ -7,6 +7,7 @@ defmodule Mix.Tasks.Ash.Codegen do
|
|||
@shortdoc "Runs all codegen tasks for any extension on any resource/domain in your application."
|
||||
@doc @shortdoc
|
||||
def run(argv) do
|
||||
Mix.Task.run("compile")
|
||||
{name, argv} =
|
||||
case argv do
|
||||
["-" <> _ | _] ->
|
||||
|
|
|
@ -7,6 +7,8 @@ defmodule Mix.Tasks.Ash.Rollback do
|
|||
@shortdoc "Runs all rollback tasks for any extension on any resource/domain in your application."
|
||||
@doc @shortdoc
|
||||
def run(argv) do
|
||||
Mix.Task.run("compile")
|
||||
|
||||
argv
|
||||
|> Ash.Mix.Tasks.Helpers.extensions!()
|
||||
|> Enum.map(fn extension ->
|
||||
|
|
|
@ -33,6 +33,7 @@ defmodule Ash.Mix.Tasks.Helpers do
|
|||
end
|
||||
end
|
||||
|
||||
|
||||
@doc """
|
||||
Get all domains for the current project and ensure they are compiled.
|
||||
"""
|
||||
|
|
Loading…
Reference in a new issue