Packages

Multi-surface application runtime for Elixir. One TEA module renders to terminal, browser (LiveView), SSH, and MCP (agents). 30+ widgets, flexbox + CSS grid, AI agent runtime, distributed swarm with CRDTs, time-travel debugging, session recording, sandboxed REPL, and agentic commerce.

Current section

Files

Jump to
raxol lib raxol system interaction_impl.ex
Raw

lib/raxol/system/interaction_impl.ex

defmodule Raxol.System.InteractionImpl do
@moduledoc """
Concrete implementation of the System.Interaction behaviour using standard Elixir/Erlang functions.
"""
@behaviour Raxol.System.Interaction
@impl Raxol.System.Interaction
def get_os_type do
:os.type()
end
@impl Raxol.System.Interaction
def find_executable(name) do
System.find_executable(name)
end
@impl Raxol.System.Interaction
def system_cmd(command, args, opts) do
# System.cmd returns {output, status_code}
System.cmd(command, args, opts)
end
end