# `Mojoler.Shell`
[🔗](https://github.com/thanos/mojoler/blob/v0.1.0/lib/mojoler/shell.ex#L1)

Exit check for Mix tasks that run a shell script.

The task prints the script output. A non-zero status becomes `Mix.Error`.

# `conclude`

```elixir
@spec conclude(String.t(), integer(), String.t()) :: nil
```

Writes `output` and returns `nil` when `status` is 0.

`label` is the script name used in the error. There are no optional arguments.

## Raises

  * `Mix.Error` when `status` is not 0

## Examples

    iex> Mojoler.Shell.conclude("ready\n", 0, "doctor")
    nil

    iex> Mojoler.Shell.conclude("nope\n", 7, "doctor")
    ** (Mix.Error) doctor failed with status 7

---

*Consult [api-reference.md](api-reference.md) for complete listing*
