From 3dfc7a848663da416ebc7068d69310118fef3314 Mon Sep 17 00:00:00 2001 From: Tuncer Ayaz Date: Wed, 17 Mar 2010 01:26:32 +0100 Subject: [PATCH] Add get-deps and delete-deps to commands info and shell completion Add get-deps and delete-deps to commands info string and bash completion script. --- priv/shell-completion/bash/rebar | 4 ++-- src/rebar_core.erl | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/priv/shell-completion/bash/rebar b/priv/shell-completion/bash/rebar index ba87bdd..20c6ec6 100644 --- a/priv/shell-completion/bash/rebar +++ b/priv/shell-completion/bash/rebar @@ -9,8 +9,8 @@ _rebar() sopts="-h -c -v -f -j" lopts=" --help --commands --verbose --force --jobs=" cmdsnvars="analyze build_plt check_plt clean compile \ - create-app create-node eunit generate \ - install int_test perf_test test \ + create-app create-node delete-deps eunit \ + get-deps generate install int_test perf_test test \ case= force=1 jobs= suite= verbose=1 appid= target= template=" if [[ ${cur} == --* ]] ; then diff --git a/src/rebar_core.erl b/src/rebar_core.erl index 0279971..e721576 100644 --- a/src/rebar_core.erl +++ b/src/rebar_core.erl @@ -123,7 +123,7 @@ set_global_flag(Options, Flag) -> rebar_config:set_global(Flag, Value). %% -%% print help +%% print help and maybe halt execution %% print_help_maybe_halt(Options, NonOptArgs) -> case proplists:get_bool(help, Options) of @@ -173,6 +173,9 @@ commands() -> "create-app Create simple app skel~n" "create-node Create simple node skel~n" "~n" +"get-deps Fetch dependencies~n" +"delete-deps Delete fetched dependencies~n" +"~n" "generate [dump_spec=0/1] Build release with reltool~n" "install [target=] Install build into target~n" "~n"