mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-15 09:58:47 -07:00
Add 'outdated' and 'platform' completions to bundler plugin
This commit is contained in:
parent
f8ea9270eb
commit
20c84eaafc
@ -18,11 +18,13 @@ case $state in
|
|||||||
"check[Determine whether the requirements for your application are installed]" \
|
"check[Determine whether the requirements for your application are installed]" \
|
||||||
"list[Show all of the gems in the current bundle]" \
|
"list[Show all of the gems in the current bundle]" \
|
||||||
"show[Show the source location of a particular gem in the 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]" \
|
"console[Start an IRB session in the context of the current bundle]" \
|
||||||
"open[Open an installed gem in the editor]" \
|
"open[Open an installed gem in the editor]" \
|
||||||
"viz[Generate a visual representation of your dependencies]" \
|
"viz[Generate a visual representation of your dependencies]" \
|
||||||
"init[Generate a simple Gemfile, placed in the current directory]" \
|
"init[Generate a simple Gemfile, placed in the current directory]" \
|
||||||
"gem[Create a simple gem, suitable for development with bundler]" \
|
"gem[Create a simple gem, suitable for development with bundler]" \
|
||||||
|
"platform[Displays platform compatibility information]" \
|
||||||
"clean[Cleans up unused gems in your bundler directory]" \
|
"clean[Cleans up unused gems in your bundler directory]" \
|
||||||
"help[Describe available tasks or one specific task]"
|
"help[Describe available tasks or one specific task]"
|
||||||
ret=0
|
ret=0
|
||||||
@ -39,11 +41,13 @@ case $state in
|
|||||||
'check' \
|
'check' \
|
||||||
'list' \
|
'list' \
|
||||||
'show' \
|
'show' \
|
||||||
|
'outdated' \
|
||||||
'console' \
|
'console' \
|
||||||
'open' \
|
'open' \
|
||||||
'viz' \
|
'viz' \
|
||||||
'init' \
|
'init' \
|
||||||
'gem' \
|
'gem' \
|
||||||
|
'platform' \
|
||||||
'help' && ret=0
|
'help' && ret=0
|
||||||
;;
|
;;
|
||||||
install)
|
install)
|
||||||
@ -71,6 +75,15 @@ case $state in
|
|||||||
'(--verbose)--verbose[Enable verbose output mode]'
|
'(--verbose)--verbose[Enable verbose output mode]'
|
||||||
ret=0
|
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)
|
(open|show)
|
||||||
_gems=( $(bundle show 2> /dev/null | sed -e '/^ \*/!d; s/^ \* \([^ ]*\) .*/\1/') )
|
_gems=( $(bundle show 2> /dev/null | sed -e '/^ \*/!d; s/^ \* \([^ ]*\) .*/\1/') )
|
||||||
if [[ $_gems != "" ]]; then
|
if [[ $_gems != "" ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user