diff options
author | Fred Hebert <mononcqc@ferd.ca> | 2015-05-21 18:17:47 -0400 |
---|---|---|
committer | Fred Hebert <mononcqc@ferd.ca> | 2015-05-21 18:17:47 -0400 |
commit | 510f4596ce2943a72efa1d5224ad769c9bddc1a4 (patch) | |
tree | 6d982cc827db0b1a02682a2769c084173ce360e9 /priv/shell-completion | |
parent | f8c29be4585f69805a602975bfb236613466f436 (diff) | |
parent | 76893ca4b9cb45a2808aa88d85546326fa0f7781 (diff) |
Merge pull request #464 from tsloughter/completions
make deps task listed in help and update zsh/bash completions
Diffstat (limited to 'priv/shell-completion')
-rw-r--r-- | priv/shell-completion/bash/rebar3 | 1 | ||||
-rw-r--r-- | priv/shell-completion/zsh/_rebar3 | 12 |
2 files changed, 12 insertions, 1 deletions
diff --git a/priv/shell-completion/bash/rebar3 b/priv/shell-completion/bash/rebar3 index cb6f69d..b6d3de2 100644 --- a/priv/shell-completion/bash/rebar3 +++ b/priv/shell-completion/bash/rebar3 @@ -27,6 +27,7 @@ _rebar3() report \ shell \ tar \ + unlock \ update \ upgrade \ version \ 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.' |