Packages

BEAM-native coding agent substrate for Elixir/OTP projects

Current section

Files

Jump to
vibe lib mix tasks vibe.ex
Raw

lib/mix/tasks/vibe.ex

defmodule Mix.Tasks.Vibe do
use Mix.Task
@shortdoc "Mix tasks to help LLMs interact with your Elixir codebase"
@vibe_ascii_art """
🎡 🎡 🎡 🎡 🎡 🎡 🎡 🎡 🎡 🎡 🎡 🎡 🎡 🎡 🎡
__ ___ __
\\ \\ / (_) |__ ___
\\ \\ / /| | '_ \\ / _ \\
\\ V / | | |_) | __/
\\_/ |_|_.__/ \\___|
🎡 🎡 🎡 🎡 🎡 🎡 🎡 🎡 🎡 🎡 🎡 🎡 🎡 🎡 🎡
"""
@impl Mix.Task
def run(args) do
case args do
["--help"] -> print_help()
[] -> print_help()
_ -> print_help()
end
end
@doc false
def print_help do
IO.puts(@vibe_ascii_art)
IO.puts("Vibe Coding - Help LLMs interact with your Elixir codebase")
IO.puts("")
IO.puts("Available commands:")
IO.puts(" mix vibe.iex - Run Elixir code in IEx and return result")
IO.puts(" mix vibe.docs - Get documentation for modules and functions")
IO.puts(" mix vibe.analyze - Analyze code structure and dependencies")
IO.puts(" mix vibe.generate - Generate code snippets and templates")
IO.puts(" mix vibe.test - Run tests with formatted output")
IO.puts("")
IO.puts("For more information on a specific command, run: mix vibe.COMMAND --help")
IO.puts("")
IO.puts("Get your code flowing with good vibes! 🎡")
end
end