mirror of
https://github.com/ash-project/ash.git
synced 2024-09-20 13:33:20 +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."
|
@shortdoc "Runs all codegen tasks for any extension on any resource/domain in your application."
|
||||||
@doc @shortdoc
|
@doc @shortdoc
|
||||||
def run(argv) do
|
def run(argv) do
|
||||||
|
Mix.Task.run("compile")
|
||||||
{name, argv} =
|
{name, argv} =
|
||||||
case argv do
|
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."
|
@shortdoc "Runs all rollback tasks for any extension on any resource/domain in your application."
|
||||||
@doc @shortdoc
|
@doc @shortdoc
|
||||||
def run(argv) do
|
def run(argv) do
|
||||||
|
Mix.Task.run("compile")
|
||||||
|
|
||||||
argv
|
argv
|
||||||
|> Ash.Mix.Tasks.Helpers.extensions!()
|
|> Ash.Mix.Tasks.Helpers.extensions!()
|
||||||
|> Enum.map(fn extension ->
|
|> Enum.map(fn extension ->
|
||||||
|
|
|
@ -33,6 +33,7 @@ defmodule Ash.Mix.Tasks.Helpers do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
@doc """
|
@doc """
|
||||||
Get all domains for the current project and ensure they are compiled.
|
Get all domains for the current project and ensure they are compiled.
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue