diff options
author | Tristan Sloughter <t@crashfast.com> | 2015-05-21 16:56:51 -0500 |
---|---|---|
committer | Tristan Sloughter <t@crashfast.com> | 2015-05-21 16:56:51 -0500 |
commit | 76893ca4b9cb45a2808aa88d85546326fa0f7781 (patch) | |
tree | 5939297a60bdee19308b339e0cae32699e08247b /priv/shell-completion/zsh | |
parent | 1c6aafeb848f211db3ec3f7d2296f676738f69f7 (diff) |
make deps task listed in help and update zsh/bash completions
Diffstat (limited to 'priv/shell-completion/zsh')
-rw-r--r-- | priv/shell-completion/zsh/_rebar3 | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/priv/shell-completion/zsh/_rebar3 b/priv/shell-completion/zsh/_rebar3 index 6950688..5fcdd91 100644 --- a/priv/shell-completion/zsh/_rebar3 +++ b/priv/shell-completion/zsh/_rebar3 @@ -72,6 +72,9 @@ _rebar3 () { '(-v --verbose)'{-v,--verbose}'[Print coverage analysis]' \ && ret=0 ;; + (deps) + _message 'no more arguments' && ret=0 + ;; (dialyzer) _arguments \ '(-u --update-plt)'{-u, --update-plt}'[Enable updating the PLT.]' \ @@ -100,7 +103,7 @@ _rebar3 () { ;; (new) _arguments \ - '1:type:(app lib release plugin)' \ + '1:type:(app cmake escript lib plugin release)' \ '2:name:' \ '(-f --force)'{-f,--force}'[ overwrite existing files]' \ && ret=0 @@ -160,6 +163,11 @@ _rebar3 () { '(-r --root)'{-r,--root}'[The project root directory]:system libs:_files -/' \ && ret=0 ;; + (unlock) + _arguments \ + '*: :_rebar3_list_deps' \ + && ret=0 + ;; (update) _message 'rebar update' && ret=0 ;; @@ -185,6 +193,7 @@ _rebar3_tasks() { 'compile:Compile apps .app.src and .erl files.' 'cover:Perform coverage analysis.' 'ct:Run Common Tests.' + 'deps:List dependencies.' 'dialyzer:Run the Dialyzer analyzer on the project.' 'do:Higher order provider for running multiple tasks in a sequence.' 'edoc:Generate documentation using edoc.' @@ -197,6 +206,7 @@ _rebar3_tasks() { '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..' 'update:Update package index.' 'upgrade:Upgrade dependencies.' 'version:Print version for rebar and current Erlang.' |