Module rebar_agent

Runs a process that holds a rebar3 state and can be used to statefully maintain loaded project state into a running VM.

Description

Runs a process that holds a rebar3 state and can be used to statefully maintain loaded project state into a running VM.

Function Index

'$handle_undefined_function'/2
do/1runs a given command in the agent's context.
do/2runs a given command in the agent's context, under a given namespace.
start_link/1boots an agent server; requires a full rebar3 state already.

Function Details

'$handle_undefined_function'/2

'$handle_undefined_function'(Cmd, X2) -> any()

do/1

do(Command::atom()) -> ok | {error, term()}

runs a given command in the agent's context.

do/2

do(Namespace::atom(), Command::atom()) -> ok | {error, term()}

runs a given command in the agent's context, under a given namespace.

start_link/1

start_link(State::rebar_state:t()) -> {ok, pid()}

boots an agent server; requires a full rebar3 state already. By default (within rebar3), this isn't called; rebar_prv_shell enters and transforms into this module


Generated by EDoc