diff options
author | Tristan Sloughter <tristan.sloughter@gmail.com> | 2015-08-15 22:04:15 -0500 |
---|---|---|
committer | Tristan Sloughter <tristan.sloughter@gmail.com> | 2015-08-15 22:04:15 -0500 |
commit | 642897867eddf00a7b1a9bf3ca99c0851b287db0 (patch) | |
tree | bdd4e1fbc953aff73b811cee5e4cc1d2790e803f /priv/shell-completion | |
parent | e49e59d09a73d4a27e1bd18ee59dd1b9ac6522bb (diff) | |
parent | be4ae19fecbade303978920701e9e3f8b38d3c54 (diff) |
Merge pull request #712 from tsloughter/tree_provider
Tree provider
Diffstat (limited to 'priv/shell-completion')
-rw-r--r-- | priv/shell-completion/bash/rebar3 | 7 | ||||
-rw-r--r-- | priv/shell-completion/fish/rebar3.fish | 6 | ||||
-rw-r--r-- | priv/shell-completion/zsh/_rebar3 | 6 |
3 files changed, 18 insertions, 1 deletions
diff --git a/priv/shell-completion/bash/rebar3 b/priv/shell-completion/bash/rebar3 index 4e28d3d..40009b7 100644 --- a/priv/shell-completion/bash/rebar3 +++ b/priv/shell-completion/bash/rebar3 @@ -15,6 +15,7 @@ _rebar3() compile \ cover \ ct \ + deps \ dialyzer \ do \ edoc \ @@ -29,6 +30,7 @@ _rebar3() report \ shell \ tar \ + tree \ unlock \ update \ upgrade \ @@ -77,6 +79,8 @@ _rebar3() --basic_html \ --ct_hooks \ --verbose" + elif [[ ${prev} == deps ]] ; then + : elif [[ ${prev} == dialyzer ]] ; then sopts="-u -s" lopts="--update-plt --succ-typings" @@ -168,6 +172,9 @@ _rebar3() --system_libs \ --version \ --root" + elif [[ ${prev} == tree ]] ; then + sopts="-v" + lopts="--verbose" elif [[ ${prev} == update ]] ; then : elif [[ ${prev} == upgrade ]] ; then diff --git a/priv/shell-completion/fish/rebar3.fish b/priv/shell-completion/fish/rebar3.fish index ad3dad9..df1697e 100644 --- a/priv/shell-completion/fish/rebar3.fish +++ b/priv/shell-completion/fish/rebar3.fish @@ -50,6 +50,7 @@ end ## 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. +## tree Print dependency tree. ## unlock Unlock dependencies. ## update Update package index. ## upgrade Upgrade dependencies. @@ -149,6 +150,10 @@ complete -f -c 'rebar3' -n '__fish_rebar3_using_command tar' -l system_libs complete -f -c 'rebar3' -n '__fish_rebar3_using_command tar' -l version -d "Print relx version" complete -f -c 'rebar3' -n '__fish_rebar3_using_command tar' -s r -l root -d "The project root directory" +complete -f -c 'rebar3' -n '__fish_rebar3_needs_command' -a tree -d "Print depdency tree." + +complete -f -c 'rebar3' -n '__fish_rebar3_needs_command tree' -s v -l verbose -d "Print repo and branch/tag/ref for git and hg deps." + complete -f -c 'rebar3' -n '__fish_rebar3_needs_command' -a unlock -d "Unlock dependencies." complete -f -c 'rebar3' -n '__fish_rebar3_needs_command' -a update -d "Update package index." @@ -158,4 +163,3 @@ complete -f -c 'rebar3' -n '__fish_rebar3_needs_command' -a upgrade -d "Upgrade complete -f -c 'rebar3' -n '__fish_rebar3_needs_command' -a version -d "Print version for rebar and current Erlang." complete -f -c 'rebar3' -n '__fish_rebar3_needs_command' -a xref -d "Run cross reference analysis." - diff --git a/priv/shell-completion/zsh/_rebar3 b/priv/shell-completion/zsh/_rebar3 index b03b7c9..04575bc 100644 --- a/priv/shell-completion/zsh/_rebar3 +++ b/priv/shell-completion/zsh/_rebar3 @@ -191,6 +191,11 @@ _rebar3 () { '(-r --root)'{-r,--root}'[The project root directory]:system libs:_files -/' \ && ret=0 ;; + (tree) + _arguments \ + '(-v --verbose)'{-v,--verbose}'[Print repo and branch/tag/ref for git and hg deps]' \ + && ret=0 + ;; (unlock) _arguments \ '*: :_rebar3_list_deps' \ @@ -236,6 +241,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.' + 'tree:Print dependency tree.' 'unlock:Unlock dependencies.' 'update:Update package index.' 'upgrade:Upgrade dependencies.' |