Skip to content

Commit

Permalink
Manually reformated _archlinux-java
Browse files Browse the repository at this point in the history
  • Loading branch information
JindrichPilar committed Oct 9, 2016
1 parent 6db4321 commit 9c17dea
Showing 1 changed file with 17 additions and 18 deletions.
35 changes: 17 additions & 18 deletions src/_archlinux-java
Original file line number Diff line number Diff line change
Expand Up @@ -40,30 +40,29 @@


_archlinux-java_command_arguments() {
case $words[1] in
(set)
local java_versions=("${(@f)$(archlinux-java status | tail -n +2 | tr -s ' ' | cut -d ' ' -f2)}")
_describe -t output 'Downloads to delete' java_versions
case $words[1] in
(set)
local java_versions=("${(@f)$(archlinux-java status | tail -n +2 | tr -s ' ' | cut -d ' ' -f2)}")
_describe -t output 'Downloads to delete' java_versions
;;
esac

esac
}

_archlinux-java() {
local -a commands
local -a commands

commands=(
"status:List installed Java environments and enabled one"
"get:Return the short name of the Java environment set as default"
"set:Force <JAVA_ENV> as default"
"unset:Unset current default Java environment"
"fix:Fix an invalid/broken default Java environment configuration"
"help:Show help"
)
commands=(
"status:List installed Java environments and enabled one"
"get:Return the short name of the Java environment set as default"
"set:Force <JAVA_ENV> as default"
"unset:Unset current default Java environment"
"fix:Fix an invalid/broken default Java environment configuration"
"help:Show help"
)

_arguments -C \
'1:cmd:->cmds' \
'*:: :->args' \
_arguments -C \
'1:cmd:->cmds' \
'*:: :->args' \

case "$state" in
(cmds)
Expand Down

0 comments on commit 9c17dea

Please sign in to comment.