summaryrefslogtreecommitdiff
path: root/src/rebar_core.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/rebar_core.erl')
-rw-r--r--src/rebar_core.erl8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rebar_core.erl b/src/rebar_core.erl
index 9f2b168..17fc0e2 100644
--- a/src/rebar_core.erl
+++ b/src/rebar_core.erl
@@ -34,17 +34,17 @@
-spec process_command(rebar_state:t(), atom()) -> {ok, rebar_state:t()} | {error, string()}.
process_command(State, Command) ->
%% ? rebar_prv_install_deps:setup_env(State),
-
- TargetProviders = rebar_provider:get_target_providers(Command, State),
+ Providers = rebar_state:providers(State),
+ TargetProviders = providers:get_target_providers(Command, Providers),
do(TargetProviders, State).
-spec do([atom()], rebar_state:t()) -> {ok, rebar_state:t()} | {error, string()}.
do([], State) ->
{ok, State};
do([ProviderName | Rest], State) ->
- Provider = rebar_provider:get_provider(ProviderName
+ Provider = providers:get_provider(ProviderName
,rebar_state:providers(State)),
- case rebar_provider:do(Provider, State) of
+ case providers:do(Provider, State) of
{ok, State1} ->
do(Rest, State1);
{error, Error} ->