From 73676c80b06bd4a26040b41f42fee8dde536dcac Mon Sep 17 00:00:00 2001 From: Fred Hebert Date: Sun, 21 Dec 2014 14:47:32 -0500 Subject: Fix up programmatic interface to rebar3 Now supports arbitrary commands --- src/rebar3.erl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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 -- cgit v1.1