Packages

Lux is a powerful framework for building and orchestrating LLM-powered agent workflows. It provides a robust set of tools for creating, managing, and coordinating AI agents in complex business processes.

Current section

Files

Jump to
lux lib mix tasks deps.h.ex
Raw

lib/mix/tasks/deps.h.ex

defmodule Mix.Tasks.Deps.H do
@moduledoc """
Quick helper to read dependency documentation from the command line and print it to the terminal.
You might want to add this to your .cursorrules file
Examples:
mix deps.h Req.Request
mix deps.h Req.Request.append_error_steps/2
"""
def run(args) do
# runs mix run --eval 'require IEx.Helpers; IEx.Helpers.h(Req)'
{result, 0} =
System.cmd("mix", ["run", "--eval", "require IEx.Helpers; IEx.Helpers.h(#{args})"])
result
|> String.split("\n")
|> Enum.each(&IO.puts/1)
end
end