mirror of
https://github.com/correl/rebar.git
synced 2024-11-27 11:09:55 +00:00
Adding convenience method for determing verbosity of run
This commit is contained in:
parent
b5eded43d8
commit
cb1899b818
1 changed files with 10 additions and 1 deletions
|
@ -28,7 +28,8 @@
|
||||||
get_modules/2,
|
get_modules/2,
|
||||||
get_list/3,
|
get_list/3,
|
||||||
get/3,
|
get/3,
|
||||||
set_global/2, get_global/2]).
|
set_global/2, get_global/2,
|
||||||
|
is_verbose/0]).
|
||||||
|
|
||||||
-include("rebar.hrl").
|
-include("rebar.hrl").
|
||||||
|
|
||||||
|
@ -91,6 +92,14 @@ get_global(Key, Default) ->
|
||||||
Value
|
Value
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
is_verbose() ->
|
||||||
|
case get_global(verbose, "0") of
|
||||||
|
"1" ->
|
||||||
|
true;
|
||||||
|
_ ->
|
||||||
|
false
|
||||||
|
end.
|
||||||
|
|
||||||
|
|
||||||
%% ===================================================================
|
%% ===================================================================
|
||||||
%% Internal functions
|
%% Internal functions
|
||||||
|
|
Loading…
Reference in a new issue