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
async_do/1
async_do/2
async_do/3
do/1runs a given command in the agent's context.
do/2runs a given command in the agent's context, under a given namespace.
do/3
start_link/1boots an agent server; requires a full rebar3 state already.

Function Details

'$handle_undefined_function'/2

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

async_do/1

async_do(Command::atom()) -> ok

async_do/2

async_do(Namespace::atom(), Command::atom()) -> ok

async_do/3

async_do(Namespace::atom(), Command::atom(), Args::string()) -> ok

do/1

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

runs a given command in the agent's context.

do/2

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

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

do/3

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

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