summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md4
-rw-r--r--priv/shell-completion/bash/rebar33
-rw-r--r--priv/shell-completion/zsh/_rebar38
3 files changed, 13 insertions, 2 deletions
diff --git a/README.md b/README.md
index efcecfd..60300ec 100644
--- a/README.md
+++ b/README.md
@@ -38,15 +38,17 @@ limit scope.
| do | Higher-order provider to run multiple tasks in sequence |
| dialyzer | Run the Dialyzer analyzer on the project |
| edoc | Generate documentation using edoc |
-| eunit | Run eunit tests |
| escriptize | Generate escript of project |
+| eunit | Run eunit tests |
| help | Print help for rebar or task |
| new | Create new rebar project from templates |
| pkgs | List available packages |
+| plugins | List or upgrade plugins |
| release | Build release of project |
| report | Report on environment and versions for bug reports |
| shell | Run shell with project apps in path |
| tar | Package release into tarball |
+| unlock | Unlock dependencies |
| update | Update package index |
| upgrade | Fetch latest version of dep |
| version | Print current version of Erlang/OTP and rebar |
diff --git a/priv/shell-completion/bash/rebar3 b/priv/shell-completion/bash/rebar3
index b6d3de2..ff8997d 100644
--- a/priv/shell-completion/bash/rebar3
+++ b/priv/shell-completion/bash/rebar3
@@ -23,6 +23,7 @@ _rebar3()
help \
new \
pkgs \
+ plugins \
release \
report \
shell \
@@ -94,6 +95,8 @@ _rebar3()
lopts="--force"
elif [[ ${prev} == pkgs ]] ; then
:
+ elif [[ ${prev} == plugins ]] ; then
+ :
elif [[ ${prev} == release ]] ; then
sopts="-n -v -g -u -o -h -l -p -V -d -i -a -c -r"
lopts="--relname \
diff --git a/priv/shell-completion/zsh/_rebar3 b/priv/shell-completion/zsh/_rebar3
index 5fcdd91..456e6c8 100644
--- a/priv/shell-completion/zsh/_rebar3
+++ b/priv/shell-completion/zsh/_rebar3
@@ -111,6 +111,11 @@ _rebar3 () {
(pkgs)
_message 'List available packages.' && ret=0
;;
+ (plugins)
+ _arguments \
+ '1:type:(list upgrade)' \
+ && ret=0
+ ;;
(release)
_arguments \
'(-n --relname)'{-n,--relname}'[Specify the name for the release that will be generated.]:relname' \
@@ -202,11 +207,12 @@ _rebar3_tasks() {
'help:Display a list of tasks or help for a given task or subtask.'
'new:Create new project from templates.'
'pkgs:List available packages.'
+ 'plugins:List or upgrade plugins.'
'release:Build release of project.'
'report:Provide a crash report to be sent to the rebar3 issues page.'
'shell:Run shell with project apps and deps in path.'
'tar:Tar archive of release built of project.'
- 'unlock:Unlock dependencies..'
+ 'unlock:Unlock dependencies.'
'update:Update package index.'
'upgrade:Upgrade dependencies.'
'version:Print version for rebar and current Erlang.'