summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFred Hebert <mononcqc@ferd.ca>2014-12-21 14:47:32 -0500
committerFred Hebert <mononcqc@ferd.ca>2014-12-21 14:47:32 -0500
commit73676c80b06bd4a26040b41f42fee8dde536dcac (patch)
treef5212a45128a55dc91f9ae3dd8df5d5ae5a0ba41 /src
parent676f2487adbdef87f3c31d0480e3113f91ca3bff (diff)
Fix up programmatic interface to rebar3
Now supports arbitrary commands
Diffstat (limited to 'src')
-rw-r--r--src/rebar3.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rebar3.erl b/src/rebar3.erl
index b325dc8..d4307f7 100644
--- a/src/rebar3.erl
+++ b/src/rebar3.erl
@@ -71,10 +71,10 @@ main(Args) ->
end.
%% Erlang-API entry point
-run(BaseState, Command) ->
+run(BaseState, Commands) ->
_ = application:load(rebar),
- BaseState1 = rebar_state:set(BaseState, task, Command),
- run_aux(BaseState1, [], [Command]).
+ BaseState1 = rebar_state:set(BaseState, task, Commands),
+ run_aux(BaseState1, [], Commands).
%% ====================================================================
%% Internal functions