mirror of
https://github.com/correl/rebar.git
synced 2024-11-23 19:19:54 +00:00
bash-completion: add missing options and variables
- add missing short and long options - add tests=, target_dir=, overlay_vars=
This commit is contained in:
parent
40ef11b4c4
commit
dfbba0f4e7
1 changed files with 51 additions and 8 deletions
|
@ -6,14 +6,57 @@ _rebar()
|
||||||
COMPREPLY=()
|
COMPREPLY=()
|
||||||
cur="${COMP_WORDS[COMP_CWORD]}"
|
cur="${COMP_WORDS[COMP_CWORD]}"
|
||||||
prev="${COMP_WORDS[COMP_CWORD-1]}"
|
prev="${COMP_WORDS[COMP_CWORD-1]}"
|
||||||
sopts="-h -c -v -V -f -j"
|
sopts="-h -c -v -V -f -D -j -C -p -k"
|
||||||
lopts=" --help --commands --verbose --force --jobs= --version"
|
lopts="--help \
|
||||||
cmdsnvars="check-deps clean compile create create-app create-node ct \
|
--commands \
|
||||||
doc delete-deps escriptize eunit get-deps generate generate-appups \
|
--verbose \
|
||||||
generate-upgrade help list-deps list-templates qc update-deps \
|
--force \
|
||||||
version xref overlay apps= case= dump_spec=1 force=1 jobs= suites= \
|
--jobs \
|
||||||
verbose=1 appid= previous_release= nodeid= root_dir= skip_deps=true \
|
--config \
|
||||||
skip_apps= template= template_dir="
|
--profile \
|
||||||
|
--keep-going \
|
||||||
|
--version"
|
||||||
|
cmdsnvars="check-deps \
|
||||||
|
clean \
|
||||||
|
compile \
|
||||||
|
create \
|
||||||
|
create-app \
|
||||||
|
create-node \
|
||||||
|
ct \
|
||||||
|
doc \
|
||||||
|
delete-deps \
|
||||||
|
escriptize \
|
||||||
|
eunit \
|
||||||
|
get-deps \
|
||||||
|
generate \
|
||||||
|
generate-appups \
|
||||||
|
generate-upgrade \
|
||||||
|
help \
|
||||||
|
list-deps \
|
||||||
|
list-templates \
|
||||||
|
qc \
|
||||||
|
update-deps \
|
||||||
|
version \
|
||||||
|
xref \
|
||||||
|
overlay \
|
||||||
|
apps= \
|
||||||
|
case= \
|
||||||
|
dump_spec=1 \
|
||||||
|
force=1 \
|
||||||
|
jobs= \
|
||||||
|
suites= \
|
||||||
|
verbose=1 \
|
||||||
|
appid= \
|
||||||
|
overlay_vars= \
|
||||||
|
previous_release= \
|
||||||
|
nodeid= \
|
||||||
|
root_dir= \
|
||||||
|
skip_deps=true \
|
||||||
|
skip_apps= \
|
||||||
|
target_dir= \
|
||||||
|
template= \
|
||||||
|
template_dir= \
|
||||||
|
tests="
|
||||||
|
|
||||||
if [[ ${cur} == --* ]] ; then
|
if [[ ${cur} == --* ]] ; then
|
||||||
COMPREPLY=( $(compgen -W "${lopts}" -- ${cur}) )
|
COMPREPLY=( $(compgen -W "${lopts}" -- ${cur}) )
|
||||||
|
|
Loading…
Reference in a new issue