brewery v0.1.1 Mix.Tasks.Brewery

Compile your project’s target Brewery module to an executable

Specify a main_module, out_file, and maybe shims in your mix.exs file:

def project do
  [app: :brewery_example,
   version: "0.1.0",
   # ...
   # the brewery field:
   brewery: [
     main_module: BreweryExample,
     out_file: "./brewery_example"
  ]]
end

And then compile it with a mix task:

mix brewery

Where it will compile to out_file, or to ./_build/dev/lib/<ModuleName>.out by default.

Summary

Functions

A task needs to implement run which receives a list of command line args

Functions

run(args)

A task needs to implement run which receives a list of command line args.

Callback implementation for Mix.Task.run/1.