mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-09 02:24:03 +01:00
Adding gvm (Groovy enVironment Manager) plugin
This commit is contained in:
parent
4fe2b78978
commit
74526e64dc
1 changed files with 42 additions and 0 deletions
42
plugins/gvm/_gvm
Normal file
42
plugins/gvm/_gvm
Normal file
|
|
@ -0,0 +1,42 @@
|
||||||
|
#compdef gvm
|
||||||
|
#autoload
|
||||||
|
|
||||||
|
# gvm zsh completion, based on homebrew completion
|
||||||
|
|
||||||
|
local -a _1st_arguments
|
||||||
|
_1st_arguments=(
|
||||||
|
'install:install a candidate version'
|
||||||
|
'uninstall:uninstall a candidate version'
|
||||||
|
'list:list available candidate versions'
|
||||||
|
'use:use a candidate version in current shell'
|
||||||
|
'current:dispaly current candidate version'
|
||||||
|
'version:display the current version of gvm'
|
||||||
|
'default:set the default candidate version for every shell'
|
||||||
|
'selfupdate:update the gvm'
|
||||||
|
'broadcast:display the last broadcast message'
|
||||||
|
'help:show the gvm help message'
|
||||||
|
)
|
||||||
|
|
||||||
|
local -a _2nd_arguments
|
||||||
|
_2nd_arguments=(
|
||||||
|
'groovy:dynamic jvm programming language'
|
||||||
|
'grails:full-stack web framework'
|
||||||
|
'griffon:framework for building desktop application'
|
||||||
|
'gradle:build tool using groovy dsl'
|
||||||
|
'vert.x:event driven application framework'
|
||||||
|
)
|
||||||
|
|
||||||
|
local expl
|
||||||
|
|
||||||
|
_arguments \
|
||||||
|
'*:: :->subcmds' && return 0
|
||||||
|
|
||||||
|
if (( CURRENT == 1 )); then
|
||||||
|
_describe -t commands "gvm subcommand" _1st_arguments
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
|
case "$words[1]" in
|
||||||
|
install|uninstall|list|use|current|default)
|
||||||
|
_describe -t commands "gvm subcommand" _2nd_arguments ;;
|
||||||
|
esac
|
||||||
Loading…
Add table
Add a link
Reference in a new issue