summaryrefslogtreecommitdiff
path: root/src/r3.erl
blob: d0d6c47f867bea7eb8b42a75cdeae88d96ed1a80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
%%% @doc external alias for `rebar_agent' for more convenient
%%% calls from a shell.
-module(r3).
-export([do/1, do/2]).

%% @doc alias for `rebar_agent:do/1'
-spec do(atom()) -> ok | {error, term()}.
do(Command) -> rebar_agent:do(Command).

%% @doc alias for `rebar_agent:do/2'
-spec do(atom(), atom()) -> ok | {error, term()}.
do(Namespace, Command) -> rebar_agent:do(Namespace, Command).