# `mix mojoler.doctor`
[🔗](https://github.com/thanos/mojoler/blob/v0.1.0/lib/mix/tasks/mojoler.doctor.ex#L1)

Prints the toolchain check from `scripts/doctor.sh`.

This is the `Mix.Task` callback `c:Mix.Task.run/1`. A task module implements
that callback and Mix invokes it for `mix mojoler.doctor`.

## Examples

    defmodule Mix.Tasks.Example.Hello do
      use Mix.Task

      @impl Mix.Task
      def run(_args) do
        Mix.shell().info("hello")
      end
    end

# `run`

```elixir
@spec run([String.t()]) :: nil
```

Runs the doctor script and writes its output.

`args` is ignored.

## Returns

`nil` when the script exits 0.

## Raises

  * `Mix.Error` when the script exits non-zero

## Examples

    iex> Mix.Tasks.Mojoler.Doctor.run([])
    nil

---

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