mirror of
https://github.com/ash-project/igniter.git
synced 2024-09-19 21:12:54 +12:00
fix: preserve original ordering in Util.Install (#33)
Some checks failed
CI / ash-ci (push) Has been cancelled
Some checks failed
CI / ash-ci (push) Has been cancelled
This commit is contained in:
parent
dc04861ca1
commit
df409b00fd
1 changed files with 4 additions and 0 deletions
|
@ -55,6 +55,10 @@ defmodule Igniter.Util.Install do
|
||||||
end)
|
end)
|
||||||
|> Stream.filter(&implements_behaviour?(&1, Igniter.Mix.Task))
|
|> Stream.filter(&implements_behaviour?(&1, Igniter.Mix.Task))
|
||||||
|> Enum.filter(&(Mix.Task.task_name(&1) in desired_tasks))
|
|> 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 =
|
title =
|
||||||
case desired_tasks do
|
case desired_tasks do
|
||||||
|
|
Loading…
Reference in a new issue