summaryrefslogtreecommitdiff
path: root/priv/shell-completion
diff options
context:
space:
mode:
authorTristan Sloughter <tristan.sloughter@gmail.com>2015-04-13 22:02:51 -0500
committerTristan Sloughter <tristan.sloughter@gmail.com>2015-04-13 22:02:51 -0500
commitbd6d6206ca8a593c4b956c7658b441a937f13b13 (patch)
treef9e189bf4d40efc354b884141ee26b717ee9c947 /priv/shell-completion
parent293b415cb300f084e584ae7247c7024e826ce480 (diff)
parent6acf0ea482bdf82813d31ca3eda558eea8903d9d (diff)
Merge pull request #336 from ferd/rework-wtf-provider
Rename wtf->report, add all dep versions
Diffstat (limited to 'priv/shell-completion')
-rw-r--r--priv/shell-completion/bash/rebar36
-rw-r--r--priv/shell-completion/zsh/_rebar38
2 files changed, 7 insertions, 7 deletions
diff --git a/priv/shell-completion/bash/rebar3 b/priv/shell-completion/bash/rebar3
index 758deee..cb6f69d 100644
--- a/priv/shell-completion/bash/rebar3
+++ b/priv/shell-completion/bash/rebar3
@@ -24,12 +24,12 @@ _rebar3()
new \
pkgs \
release \
+ report \
shell \
tar \
update \
upgrade \
version \
- wtf \
xref"
elif [[ ${prev} == as ]] ; then
:
@@ -115,6 +115,8 @@ _rebar3()
--system_libs \
--version \
--root"
+ elif [[ ${prev} == report ]] ; then
+ :
elif [[ ${prev} == shell ]] ; then
:
elif [[ ${prev} == tar ]] ; then
@@ -145,8 +147,6 @@ _rebar3()
:
elif [[ ${prev} == version ]] ; then
:
- elif [[ ${prev} == wtf ]] ; then
- :
elif [[ ${prev} == xref ]] ; then
:
fi
diff --git a/priv/shell-completion/zsh/_rebar3 b/priv/shell-completion/zsh/_rebar3
index 347451b..6950688 100644
--- a/priv/shell-completion/zsh/_rebar3
+++ b/priv/shell-completion/zsh/_rebar3
@@ -131,6 +131,9 @@ _rebar3 () {
'(-r --root)'{-r,--root}'[The project root directory]:system libs:_files -/' \
&& ret=0
;;
+ (report)
+ _arguments '1: :_rebar3_tasks' && ret=0
+ ;;
(shell)
_message 'Start a shell with project and deps preloaded' && ret=0
;;
@@ -168,9 +171,6 @@ _rebar3 () {
(version)
_message 'rebar version' && ret=0
;;
- (wtf)
- _arguments '1: :_rebar3_tasks' && ret=0
- ;;
(xref)
_message 'rebar xref' && ret=0
esac
@@ -194,12 +194,12 @@ _rebar3_tasks() {
'new:Create new project from templates.'
'pkgs:List available packages.'
'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.'
'update:Update package index.'
'upgrade:Upgrade dependencies.'
'version:Print version for rebar and current Erlang.'
- 'wtf:Provide a crash report to be sent to the rebar3 issues page.'
'xref:Run cross reference analysis.'
)
_describe -t tasks 'rebar3 tasks' tasks "$@"