Skip to content
This repository has been archived by the owner on Sep 11, 2023. It is now read-only.

Commit

Permalink
Add version task
Browse files Browse the repository at this point in the history
  • Loading branch information
Fruetel committed Feb 10, 2020
1 parent 7c7f216 commit 579d859
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ defmodule Ink.Mixfile do
description: description(),
package: package(),
deps: deps(),
aliases: aliases(),
name: "Ink",
source_url: "https://github.com/ivx/ink",
homepage_url: "https://github.com/ivx/ink",
Expand Down Expand Up @@ -62,4 +63,12 @@ defmodule Ink.Mixfile do
{:ex_doc, ">= 0.0.0", only: :dev}
]
end

defp aliases do
[version: &version/1]
end

defp version(_) do
IO.puts(project()[:version])
end
end

0 comments on commit 579d859

Please sign in to comment.