summaryrefslogtreecommitdiff
path: root/priv/shell-completion
diff options
context:
space:
mode:
Diffstat (limited to 'priv/shell-completion')
-rw-r--r--priv/shell-completion/bash/rebar59
-rw-r--r--priv/shell-completion/zsh/_rebar4
2 files changed, 55 insertions, 8 deletions
diff --git a/priv/shell-completion/bash/rebar b/priv/shell-completion/bash/rebar
index 7e62570..d4a42dc 100644
--- a/priv/shell-completion/bash/rebar
+++ b/priv/shell-completion/bash/rebar
@@ -6,14 +6,57 @@ _rebar()
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"
- sopts="-h -c -v -V -f -j"
- lopts=" --help --commands --verbose --force --jobs= --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= force=1 jobs= suites= verbose=1 \
- appid= previous_release= nodeid= root_dir= skip_deps=true skip_apps= \
- template= template_dir="
+ sopts="-h -c -v -V -f -D -j -C -p -k"
+ lopts="--help \
+ --commands \
+ --verbose \
+ --force \
+ --jobs \
+ --config \
+ --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
COMPREPLY=( $(compgen -W "${lopts}" -- ${cur}) )
diff --git a/priv/shell-completion/zsh/_rebar b/priv/shell-completion/zsh/_rebar
index 968ce83..3d04ba1 100644
--- a/priv/shell-completion/zsh/_rebar
+++ b/priv/shell-completion/zsh/_rebar
@@ -52,17 +52,21 @@ _rebar () {
'version[Show version information]' \
'apps[Application names to process]:' \
'case[Common Test case]:' \
+ 'dump_spec[Dump reltool spec]::flag:(1)' \
'jobs[Number of workers]::workers:(0 1 2 3 4 5 6 7 8 9)' \
'suites[Common Test suites]::suite name:_path_files -W "(src test)" -g "*.erl(:r)"' \
'verbose[Verbosity level]::verbosity level:(0 1 2 3)' \
'appid[Application id]:' \
+ 'overlay_vars[Overlay variables file]:' \
'previous_release[Previous release path]:' \
'nodeid[Node id]:' \
'root_dir[Reltool config root directory]::directory:_files -/' \
'skip_deps[Skip deps]::flag:(true false)' \
'skip_apps[Application names to not process]::flag:(true false)' \
+ 'target_dir[Target directory]:' \
'template[Template name]:' \
'template_dir[Template directory]::directory:_files -/' \
+ 'tests[Run eunit tests whose name starts with given string]:' \
&& ret=0
;;
esac