You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
569 B

  1. %%% @doc external alias for `rebar_agent' for more convenient
  2. %%% calls from a shell.
  3. -module(r3).
  4. -export([do/1, do/2]).
  5. -export(['$handle_undefined_function'/2]).
  6. %% @doc alias for `rebar_agent:do/1'
  7. -spec do(atom()) -> ok | {error, term()}.
  8. do(Command) -> rebar_agent:do(Command).
  9. %% @doc alias for `rebar_agent:do/2'
  10. -spec do(atom(), atom()) -> ok | {error, term()}.
  11. do(Namespace, Command) -> rebar_agent:do(Namespace, Command).
  12. %% @private defer to rebar_agent
  13. '$handle_undefined_function'(Cmd, Args) ->
  14. rebar_agent:'$handle_undefined_function'(Cmd, Args).