summaryrefslogtreecommitdiff
path: root/src/rebar_config.erl
diff options
context:
space:
mode:
authorTristan Sloughter <t@crashfast.com>2014-08-16 10:47:34 -0500
committerTristan Sloughter <t@crashfast.com>2014-08-16 10:48:45 -0500
commit5735c538b976d856606f857107e7a931fdcce1d2 (patch)
tree92059deb7e596a1aab0dc22142da024b4de549aa /src/rebar_config.erl
parent2880e2838bd6bbb72b83e013b8fc87265d6f75aa (diff)
add rebar update provider
Diffstat (limited to 'src/rebar_config.erl')
-rw-r--r--src/rebar_config.erl10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/rebar_config.erl b/src/rebar_config.erl
index 079801a..50682e0 100644
--- a/src/rebar_config.erl
+++ b/src/rebar_config.erl
@@ -30,6 +30,7 @@
get/3, get_local/3, get_list/3,
get_all/2,
set/3,
+ command_args/1, command_args/2,
set_global/3, get_global/3,
is_recursive/1,
save_env/3, get_env/2, reset_envs/1,
@@ -56,6 +57,7 @@
local_opts = [] :: list(),
globals = new_globals() :: rebar_dict(),
envs = new_env() :: rebar_dict(),
+ command_args = [] :: list(),
%% cross-directory/-command config
goals = [],
providers = [],
@@ -119,7 +121,7 @@ new(ParentConfig, ConfName, Dir) ->
Opts1 = case consult_file(?LOCK_FILE) of
{ok, [D]} ->
- lists:keyreplace(deps, 1, Opts, {deps, D});
+ [{lock_deps, D} | Opts];
_ ->
Opts
end,
@@ -230,6 +232,12 @@ erase_xconf(Config, Key) ->
NewXconf = dict:erase(Key, Config#config.xconf),
Config#config{xconf = NewXconf}.
+command_args(#config{command_args=CmdArgs}) ->
+ CmdArgs.
+
+command_args(Config, CmdArgs) ->
+ Config#config{command_args=CmdArgs}.
+
get_dep(#config{deps=Apps}, Name) ->
lists:keyfind(Name, 2, Apps).