meld v0.1.2 Meld

Meld is a command-line utility (and library) that makes it easy to provide a mix task as a global command, enabling real CLIs.

## Usage

Meld.link ".", "mix_task"
Meld.unlink "mix_task"

Where File.cwd() is a directory containing an Elixir app with a mix task that can be run. ‘mix_task’ is the mix task name, that means that it can be run with ‘mix mix_task’.

Meld will create a shell script in its directory at ~/.meld. This shell script will cd into the specified directory and run the mix task. By adding the Meld directory to the global PATH, a simulated global executable is achieved.

Summary

Functions

Links a mix task to a newly created shell script in ~/.meld

Removes a script from the ~/.meld directory

Functions

link(dir, mix_task, script_name)

Links a mix task to a newly created shell script in ~/.meld.

## Usage

Meld.link ".", "mix_task", "script_name"

## Arguments

* `dir` - A directory containing a mix project.
* `mix_task` - The name of the mix task to link.
* `script_name` - Custom name for the generated script.
unlink(script_name)

Removes a script from the ~/.meld directory.

## Usage

Meld.unlink "script_name"

## Arguments

* `script_name` - The filename of the script to remove.