mirror of
https://github.com/ash-project/igniter.git
synced 2024-09-19 13:02:51 +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)
|
||||
|> 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
|
||||
|
|
Loading…
Reference in a new issue