【发布时间】:2015-11-13 06:42:25
【问题描述】:
我在 lib/mix/tasks/thing.exs 中有一个任务 Thing
代码是:
defmodule Mix.Tasks.Thing do
use Mix.Task
def run(_) do
IO.puts "hello world"
end
end
当我运行mix thing 或mix Thing 时,我得到The task thing could not be found 或The task Thing could not be found
我之前尝试过运行mix compile,但没有帮助。
我还尝试将 this question 中的代码直接放入我的 mix.exs,如该问题所示。我仍然无法运行任务。
【问题讨论】:
标签: elixir elixir-mix