Skip to content

Commit

Permalink
fix: preserve original ordering in Util.Install (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
ibarakaiev authored Jul 4, 2024
1 parent dc04861 commit df409b0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/igniter/util/install.ex
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ defmodule Igniter.Util.Install do
end)
|> Stream.filter(&implements_behaviour?(&1, Igniter.Mix.Task))
|> Enum.filter(&(Mix.Task.task_name(&1) in desired_tasks))
|> Enum.sort_by(
&Enum.find_index(desired_tasks, fn e -> e == Mix.Task.task_name(&1) end),
&<=/2
)

title =
case desired_tasks do
Expand Down

0 comments on commit df409b0

Please sign in to comment.