瀏覽代碼

Adding convenience method for determing verbosity of run

pull/3/head
Dave Smith 15 年之前
父節點
當前提交
cb1899b818
共有 1 個文件被更改,包括 10 次插入1 次删除
  1. +10
    -1
      src/rebar_config.erl

+ 10
- 1
src/rebar_config.erl 查看文件

@ -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…
取消
儲存