summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeinz N. Gies <heinz@licenser.net>2016-02-16 12:08:23 -0500
committerHeinz N. Gies <heinz@licenser.net>2016-02-16 12:08:23 -0500
commit4a5c8bc0e3c5c0ba062d92e44b4bb627ac9d8af5 (patch)
tree388cbbf136fd05400e17023a830bf7e3a4fc2d73
parentc79fe4cf1b123e049f9582c6f829074fe4e45d72 (diff)
Set relx color intensity env variable
-rw-r--r--src/rebar_relx.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rebar_relx.erl b/src/rebar_relx.erl
index 5d29258..45e1c96 100644
--- a/src/rebar_relx.erl
+++ b/src/rebar_relx.erl
@@ -14,6 +14,8 @@
-spec do(atom(), string(), atom(), rebar_state:t()) -> {ok, rebar_state:t()} | {error, string()}.
do(Module, Command, Provider, State) ->
+ %% We set the color mode for relx as a application env
+ application:set_env(relx, color_intensity, rebar_log:intensity()),
Options = rebar_state:command_args(State),
DepsDir = rebar_dir:deps_dir(State),
ProjectAppDirs = lists:delete(".", ?DEFAULT_PROJECT_APP_DIRS),