How can change dir in Igniter.add_task cross platform? (suggestion)
i have no windows to test it, just get the response from
claude
that can be wrong
it says it is not cross platform code for example in windows has problem
So i decided to change it to this
And change the command runner function like this
it works, but it is a good way? or the Igniter has better way for this?
Thank you in advance4 Replies
Tasks are only for mix tasks
Not for arbitrary shell commands
Solution
So you need to write a mix task that does what you want
And invoke it with
add_task
so the second way i did is right?
i created a
Mix.Tasks.Mishka.Assets.Install
and run in add_task