我有一个任务在lib/mix/tasks/thing.exs
代码是:
defmodule Mix.Tasks.Thing do
use Mix.Task
def run(_) do
IO.puts "hello world"
end
end
Run Code Online (Sandbox Code Playgroud)
当我跑步mix thing或mix Thing我得到The task thing could not be found或The task Thing could not be found
我mix compile事先尝试过跑步,但没有帮助.
我也尝试将这个问题的代码直接放到我的mix.exs中,如该问题所示.我仍然无法执行任务.
| 归档时间: |
|
| 查看次数: |
1720 次 |
| 最近记录: |