Mix

Mix is a build tool that provides tasks for creating, compiling, testing (and soon deploying) Elixir projects. Mix is inspired by the Leiningen build tool for Clojure and was written by one of its contributors.

This module works as a facade for accessing the most common functionality in Elixir, such as the shell and the current project configuration.

For getting started with Elixir, checkout out the guide available on Elixir's website.

Source

Summary

env()

Returns the mix environment

env(env)

Changes the current mix env. Project configuration loaded per environment will not be reloaded

loadpaths()

Starts mix and loads the project and dependencies in one step. Useful when invoking mix from an external tool

project()

Retrieves the current project configuration, with the current environment configuration applied

shell()

The shell is a wrapper for doing IO

shell(shell)

Sets the current shell

Functions

env()

Returns the mix environment.

Source
env(env)

Changes the current mix env. Project configuration loaded per environment will not be reloaded.

Source
loadpaths()

Starts mix and loads the project and dependencies in one step. Useful when invoking mix from an external tool.

Source
project()

Retrieves the current project configuration, with the current environment configuration applied.

If there is no project defined, it still returns a keyword list with default values. This allows many mix tasks to work without the need for an underlying project.

Source
shell()

The shell is a wrapper for doing IO.

It contains conveniences for asking the user information, printing status and so forth. It is also swappable, allowing developers to use a test shell that simply sends the messages to the current process.

Source
shell(shell)

Sets the current shell.

Source