Exake

A simple tool like rake

Installation

If available in Hex, the package can be installed by adding exake to your list of dependencies in mix.exs:

def deps do
  [
    {:exake, "~> 0.1.0"}
  ]
end

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/exake.

Usage


defmodule RunATask do
  use Exake

  task :hello do
    IO.puts("hello")
  end
  task :world, with: [:hello] do
    IO.puts("world")
  end
end

Mix.Task.run("world")
# hello
# world

You can find more sample in test/exake_test.exs