Manually reformated _archlinux-java
This commit is contained in:
parent
6db432153e
commit
9c17dea89a
|
@ -40,30 +40,29 @@
|
||||||
|
|
||||||
|
|
||||||
_archlinux-java_command_arguments() {
|
_archlinux-java_command_arguments() {
|
||||||
case $words[1] in
|
case $words[1] in
|
||||||
(set)
|
(set)
|
||||||
local java_versions=("${(@f)$(archlinux-java status | tail -n +2 | tr -s ' ' | cut -d ' ' -f2)}")
|
local java_versions=("${(@f)$(archlinux-java status | tail -n +2 | tr -s ' ' | cut -d ' ' -f2)}")
|
||||||
_describe -t output 'Downloads to delete' java_versions
|
_describe -t output 'Downloads to delete' java_versions
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_archlinux-java() {
|
_archlinux-java() {
|
||||||
local -a commands
|
local -a commands
|
||||||
|
|
||||||
commands=(
|
commands=(
|
||||||
"status:List installed Java environments and enabled one"
|
"status:List installed Java environments and enabled one"
|
||||||
"get:Return the short name of the Java environment set as default"
|
"get:Return the short name of the Java environment set as default"
|
||||||
"set:Force <JAVA_ENV> as default"
|
"set:Force <JAVA_ENV> as default"
|
||||||
"unset:Unset current default Java environment"
|
"unset:Unset current default Java environment"
|
||||||
"fix:Fix an invalid/broken default Java environment configuration"
|
"fix:Fix an invalid/broken default Java environment configuration"
|
||||||
"help:Show help"
|
"help:Show help"
|
||||||
)
|
)
|
||||||
|
|
||||||
_arguments -C \
|
_arguments -C \
|
||||||
'1:cmd:->cmds' \
|
'1:cmd:->cmds' \
|
||||||
'*:: :->args' \
|
'*:: :->args' \
|
||||||
|
|
||||||
case "$state" in
|
case "$state" in
|
||||||
(cmds)
|
(cmds)
|
||||||
|
|
Loading…
Reference in New Issue