From fd6cf50b502ea91215bd5c8178c00396d8da9de6 Mon Sep 17 00:00:00 2001 From: Nick Kugaevsky Date: Fri, 26 Jul 2013 00:54:24 +0400 Subject: [PATCH] Add outdated command Add outdated command and its options to completion --- plugins/bundler/_bundler | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/plugins/bundler/_bundler b/plugins/bundler/_bundler index 2ec3a5f9c..e8613f41b 100644 --- a/plugins/bundler/_bundler +++ b/plugins/bundler/_bundler @@ -18,6 +18,7 @@ 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]" \ @@ -39,6 +40,7 @@ case $state in 'check' \ 'list' \ 'show' \ + 'outdated' \ 'console' \ 'open' \ 'viz' \ @@ -77,6 +79,15 @@ case $state in _values 'gems' $_gems && ret=0 fi ;; + 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 + ;; *) _opts=( $(bundle help $line[1] | sed -e '/^ \[-/!d; s/^ \[\(-[^=]*\)=.*/\1/') ) _opts+=( $(bundle help $line[1] | sed -e '/^ -/!d; s/^ \(-.\), \[\(-[^=]*\)=.*/\1 \2/') )