소스 검색

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.
Tuncer Ayaz 15 년 전
부모
커밋
3dfc7a8486
2개의 변경된 파일6개의 추가작업 그리고 3개의 파일을 삭제
  1. +2
    -2
      priv/shell-completion/bash/rebar
  2. +4
    -1
      src/rebar_core.erl

+ 2
- 2
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

+ 4
- 1
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"

불러오는 중...
취소
저장