Elixir 自定义任务未显示在“混合帮助”上

Jef*_*Pal 4 elixir-mix elixir

以下代码不足以列出自定义任务吗mix help

defmodule Mix.Tasks.Start do
  use Mix.Task

  @shortdoc "Starts [App]"
  def run(_) do
    IO.puts("Starting [App]...")
  end
end
Run Code Online (Sandbox Code Playgroud)

我认为装饰器@shortdoc足以列出我的自定义任务,mix help但我重新编译了我的代码,但我的自定义任务没有列出在 上mix help

Bre*_*tty 8

在我自己尝试时,我必须添加 a@moduledoc和 a @shortdoc。然后我必须运行mix compile以获取列表中的任务mix help