mix_under v0.1.0 mix under

mix under

Execute mix tasks under the specified umbrella apps.

Usage

mix under GLOB [TASK...]

Example

Having an example umbrella app like:

example/
  apps/
    earth/
    heaven/
    hell/

This will run test on a single app

$ mix under heaven test
Heaven
..

Finished in 0.05 seconds
1 doctest, 1 test, 0 failures

Randomized with seed 132550

Or you can use a glob (be sure to quote it to prevent your shell from expanding the glob itself)

$ mix under 'he*' test
Heaven
..

Finished in 0.05 seconds
1 doctest, 1 test, 0 failures

Randomized with seed 941219

.Hell
.

Finished in 0.05 seconds
1 doctest, 1 test, 0 failures

Randomized with seed 862534

Installation

def deps do
  [
    {:mix_under, "~> 0.1.0", only: [:dev, :test]}
  ]
end

Link to this section Summary

Functions

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

Link to this section Functions

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

Callback implementation for Mix.Task.run/1.

Link to this function under(directory, args)