Packages

A mix task to get info about the current mix project such as name or version number. Useful to automate tasks using a CI server or a build script.

Current section

Files

Jump to
project_info lib mix tasks name.ex
Raw

lib/mix/tasks/name.ex

defmodule Mix.Tasks.ProjectInfo.Name do
use Mix.Task
@shortdoc "Returns the name of the mix project"
def run(_) do
IO.puts Mix.Project.config[:app]
end
end