summaryrefslogtreecommitdiff
path: root/plugins/bundler/_bundler
diff options
context:
space:
mode:
authortoooooooby <toby.net.info.mail+git@gmail.com>2013-05-15 02:15:13 +0900
committerThomas Kriechbaumer <kriechbaumer@gmail.com>2014-07-15 16:42:23 +0200
commit20c84eaafc0bddc8584902898c245dbe1a7b0f8f (patch)
tree1bcf2674634b6b7d4a101146dac5925e3d088d9d /plugins/bundler/_bundler
parentf8ea9270ebcb012aee8e0691e5ab2fc700e56492 (diff)
downloadzsh-20c84eaafc0bddc8584902898c245dbe1a7b0f8f.tar.gz
zsh-20c84eaafc0bddc8584902898c245dbe1a7b0f8f.tar.bz2
zsh-20c84eaafc0bddc8584902898c245dbe1a7b0f8f.zip
Add 'outdated' and 'platform' completions to bundler plugin
Diffstat (limited to 'plugins/bundler/_bundler')
-rw-r--r--plugins/bundler/_bundler13
1 files changed, 13 insertions, 0 deletions
diff --git a/plugins/bundler/_bundler b/plugins/bundler/_bundler
index 2ec3a5f9c..ba647ab80 100644
--- a/plugins/bundler/_bundler
+++ b/plugins/bundler/_bundler
@@ -18,11 +18,13 @@ case $state in
"check[Determine whether the requirements for your application are installed]" \
"list[Show all of the gems in the current bundle]" \
"show[Show the source location of a particular gem in the bundle]" \
+ "outdated[Show all of the outdated gems in the current bundle]" \
"console[Start an IRB session in the context of the current bundle]" \
"open[Open an installed gem in the editor]" \
"viz[Generate a visual representation of your dependencies]" \
"init[Generate a simple Gemfile, placed in the current directory]" \
"gem[Create a simple gem, suitable for development with bundler]" \
+ "platform[Displays platform compatibility information]" \
"clean[Cleans up unused gems in your bundler directory]" \
"help[Describe available tasks or one specific task]"
ret=0
@@ -39,11 +41,13 @@ case $state in
'check' \
'list' \
'show' \
+ 'outdated' \
'console' \
'open' \
'viz' \
'init' \
'gem' \
+ 'platform' \
'help' && ret=0
;;
install)
@@ -71,6 +75,15 @@ case $state in
'(--verbose)--verbose[Enable verbose output mode]'
ret=0
;;
+ outdated)
+ _arguments \
+ '(--pre)--pre[Check for newer pre-release gems]' \
+ '(--source)--source[Check against a specific source]' \
+ '(--local)--local[Do not attempt to fetch gems remotely and use the gem cache instead]' \
+ '(--no-color)--no-color[Disable colorization in output]' \
+ '(--verbose)--verbose[Enable verbose output mode]'
+ ret=0
+ ;;
(open|show)
_gems=( $(bundle show 2> /dev/null | sed -e '/^ \*/!d; s/^ \* \([^ ]*\) .*/\1/') )
if [[ $_gems != "" ]]; then