mirror of
https://github.com/correl/rebar.git
synced 2024-12-18 03:00:17 +00:00
Add simple warning if no modules are interested in handling a command for a given directory
This commit is contained in:
parent
66906bc39e
commit
266d82f871
1 changed files with 3 additions and 0 deletions
|
@ -264,6 +264,7 @@ process_dir(Dir, ParentConfig, Commands) ->
|
||||||
ok = file:set_cwd(Dir),
|
ok = file:set_cwd(Dir),
|
||||||
|
|
||||||
%% Finally, process the current working directory
|
%% Finally, process the current working directory
|
||||||
|
?DEBUG("Commands: ~p Modules: ~p\n", [Commands, Modules]),
|
||||||
apply_commands(Commands, Modules, UpdatedConfig, ModuleSetFile),
|
apply_commands(Commands, Modules, UpdatedConfig, ModuleSetFile),
|
||||||
|
|
||||||
%% Once we're all done processing, reset the code path to whatever
|
%% Once we're all done processing, reset the code path to whatever
|
||||||
|
@ -306,6 +307,8 @@ apply_commands([], _Modules, _Config, _ModuleFile) ->
|
||||||
apply_commands([Command | Rest], Modules, Config, ModuleFile) ->
|
apply_commands([Command | Rest], Modules, Config, ModuleFile) ->
|
||||||
case select_modules(Modules, Command, []) of
|
case select_modules(Modules, Command, []) of
|
||||||
[] ->
|
[] ->
|
||||||
|
?CONSOLE("WARNING: ~p command does not apply to directory ~s\n",
|
||||||
|
[Command, rebar_utils:get_cwd()]),
|
||||||
apply_commands(Rest, Modules, Config, ModuleFile);
|
apply_commands(Rest, Modules, Config, ModuleFile);
|
||||||
TargetModules ->
|
TargetModules ->
|
||||||
%% Provide some info on where we are
|
%% Provide some info on where we are
|
||||||
|
|
Loading…
Reference in a new issue