Hello there I have a module like this one:
Mix.Tasks.MyModule.Release.Deploy
and when I run mix help it is displayed like this:
my_module.release.deploy
How can I change that to
mymodule.release.deploy
I tried to use Mix.Task.task_name/1 :
def task_name(_) do
"mymodule.release.deploy"
end
but with no success. Am I missing something there?
Indeed. CamelCase is translated to lowercase with underscores between two capital letters. If you want mymodule
, you better write it Mymodule
in the first place.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.