Packages

Lookup Elixir documentation from the command line

Current section

Files

Jump to
eh lib tasks.ex
Raw

lib/tasks.ex

defmodule Mix.Tasks.Eh do
use Mix.Task
@shortdoc "Lookup Elixir documentation from the command line"
@moduledoc """
Lookup Elixir documentation using a mix task
"""
@doc """
Lookup documentation for some Elixir term.
"""
def run([definition | _other_args]), do: Eh.lookup(definition)
end