mirror of
https://github.com/correl/rebar.git
synced 2024-12-18 03:00:17 +00:00
Document xref command
Also add a sleep after printing so that the io server has written all output before exiting. It's a work around.
This commit is contained in:
parent
aea6f66939
commit
1e8916ba87
2 changed files with 31 additions and 26 deletions
|
@ -10,7 +10,7 @@ _rebar()
|
||||||
lopts=" --help --commands --verbose --force --jobs="
|
lopts=" --help --commands --verbose --force --jobs="
|
||||||
cmdsnvars="analyze build_plt check_plt check-deps clean compile \
|
cmdsnvars="analyze build_plt check_plt check-deps clean compile \
|
||||||
create create-app create-node delete-deps eunit \
|
create create-app create-node delete-deps eunit \
|
||||||
get-deps generate install int_test perf_test test \
|
get-deps generate install int_test perf_test test xref \
|
||||||
case= force=1 jobs= suite= verbose=1 appid= target= template="
|
case= force=1 jobs= suite= verbose=1 appid= target= template="
|
||||||
|
|
||||||
if [[ ${cur} == --* ]] ; then
|
if [[ ${cur} == --* ]] ; then
|
||||||
|
|
|
@ -161,31 +161,36 @@ help() ->
|
||||||
%% print known commands
|
%% print known commands
|
||||||
%%
|
%%
|
||||||
commands() ->
|
commands() ->
|
||||||
io:format(<<
|
S = <<"
|
||||||
"analyze Analyze with Dialyzer~n"
|
analyze Analyze with Dialyzer
|
||||||
"build_plt Build Dialyzer PLT~n"
|
build_plt Build Dialyzer PLT
|
||||||
"check_plt Check Dialyzer PLT~n"
|
check_plt Check Dialyzer PLT
|
||||||
"~n"
|
|
||||||
"clean Clean~n"
|
clean Clean
|
||||||
"compile Compile sources~n"
|
compile Compile sources
|
||||||
"~n"
|
|
||||||
"create template= [var=foo,...] Create skel based on template and vars~n"
|
create template= [var=foo,...] Create skel based on template and vars
|
||||||
"create-app Create simple app skel~n"
|
create-app Create simple app skel
|
||||||
"create-node Create simple node skel~n"
|
create-node Create simple node skel
|
||||||
"~n"
|
|
||||||
"check-deps Display to be fetched dependencies~n"
|
check-deps Display to be fetched dependencies
|
||||||
"get-deps Fetch dependencies~n"
|
get-deps Fetch dependencies
|
||||||
"delete-deps Delete fetched dependencies~n"
|
delete-deps Delete fetched dependencies
|
||||||
"~n"
|
|
||||||
"generate [dump_spec=0/1] Build release with reltool~n"
|
generate [dump_spec=0/1] Build release with reltool
|
||||||
"install [target=] Install build into target~n"
|
install [target=] Install build into target
|
||||||
"~n"
|
|
||||||
"eunit [suite=foo] Run eunit [test/foo_tests.erl] tests~n"
|
eunit [suite=foo] Run eunit [test/foo_tests.erl] tests
|
||||||
"~n"
|
|
||||||
"int_test [suite=] [case=] Run ct suites in ./int_test~n"
|
int_test [suite=] [case=] Run ct suites in ./int_test
|
||||||
"perf_test [suite=] [case=] Run ct suites in ./perf_test~n"
|
perf_test [suite=] [case=] Run ct suites in ./perf_test
|
||||||
"test [suite=] [case=] Run ct suites in ./test~n"
|
test [suite=] [case=] Run ct suites in ./test
|
||||||
>>).
|
|
||||||
|
xref Run cross reference analysis
|
||||||
|
">>,
|
||||||
|
io:put_chars(S),
|
||||||
|
%% workaround to delay exit until all output is written
|
||||||
|
timer:sleep(300).
|
||||||
|
|
||||||
%%
|
%%
|
||||||
%% options accepted via getopt
|
%% options accepted via getopt
|
||||||
|
|
Loading…
Reference in a new issue