Current section

Files

Jump to
ehelper lib mix tasks h.hi.ex
Raw

lib/mix/tasks/h.hi.ex

defmodule Mix.Tasks.H.Hi do
@shortdoc "Just test task"
use Mix.Task
@impl true
def run(_args) do
shell = Mix.shell()
vsn = Application.spec(:ehelper, :vsn)
~s"""
## Test task from ehelper-#{vsn}
Mix env: #{Mix.env()}, target: #{Mix.target()}
"""
|> shell.info()
System.build_info()
|> IO.inspect(label: "build-info")
Mix.Project.build_path()
|> IO.inspect(label: "build-path")
Mix.path_for(:archives)
|> IO.inspect(label: "archives path")
end
end