fix: preserve original ordering in Util.Install (#33)
Some checks failed
CI / ash-ci (push) Has been cancelled

This commit is contained in:
Igor Barakaiev 2024-07-04 13:52:48 +02:00 committed by GitHub
parent dc04861ca1
commit df409b00fd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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