【发布时间】:2020-12-15 21:17:14
【问题描述】:
当我在mix.exs 中定义别名并运行mix help 时,它只是将其描述显示为“在 mix.exs 中定义的别名”。
假设,例如,我有这个mix.exs:
defp aliases do
[
play: "run --no-halt"
]
end
然后,mix help 命令显示任务列表如下:
...
mix local.rebar # Installs Rebar locally
mix new # Creates a new Elixir project
mix play # Alias defined in mix.exs
mix profile.cprof # Profiles the given file or expression with cprof
mix profile.eprof # Profiles the given file or expression with eprof
...
如何描述play 任务?
【问题讨论】:
标签: elixir elixir-mix