您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

17 行
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).