Skip to content

Commit

Permalink
improvement: add ash.rollback mix task
Browse files Browse the repository at this point in the history
chore: fix some naming/mix task steps
  • Loading branch information
zachdaniel committed Apr 10, 2024
1 parent 4f26773 commit 46ed97d
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/mix/tasks/ash.codegen.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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
["-" <> _ | _] ->
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions lib/mix/tasks/ash.rollback.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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 ->
Expand Down
1 change: 1 addition & 0 deletions lib/mix/tasks/helpers.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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.
"""
Expand Down

0 comments on commit 46ed97d

Please sign in to comment.