mix mojoler.doctor (mojoler v0.1.0)

Copy Markdown View Source

Prints the toolchain check from scripts/doctor.sh.

This is the Mix.Task callback 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

Summary

Functions

Runs the doctor script and writes its output.

Functions

run(args)

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

Runs the doctor script and writes its output.

args is ignored.

Returns

nil when the script exits 0.

Raises

Examples

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