forked from extern/ohmyzsh
sdk: remove invalid value "candidates" from sdk flush completion (#8725)
This commit is contained in:
parent
e1a8d7c977
commit
a31dee2c14
@ -7,10 +7,10 @@
|
|||||||
# sdk offline <enable|disable>
|
# sdk offline <enable|disable>
|
||||||
#
|
#
|
||||||
# commands:
|
# commands:
|
||||||
# install or i <candidate> [version]
|
# install or i <candidate> [version] [local-path]
|
||||||
# uninstall or rm <candidate> <version>
|
# uninstall or rm <candidate> <version>
|
||||||
# list or ls [candidate]
|
# list or ls [candidate]
|
||||||
# use or u <candidate> [version]
|
# use or u <candidate> <version>
|
||||||
# default or d <candidate> [version]
|
# default or d <candidate> [version]
|
||||||
# current or c [candidate]
|
# current or c [candidate]
|
||||||
# upgrade or ug [candidate]
|
# upgrade or ug [candidate]
|
||||||
@ -20,14 +20,15 @@
|
|||||||
# offline [enable|disable]
|
# offline [enable|disable]
|
||||||
# selfupdate [force]
|
# selfupdate [force]
|
||||||
# update
|
# update
|
||||||
# flush <candidates|broadcast|archives|temp>
|
# flush <broadcast|archives|temp>
|
||||||
#
|
#
|
||||||
# candidate : the SDK to install: groovy, scala, grails, gradle, kotlin, etc.
|
# candidate : the SDK to install: groovy, scala, grails, gradle, kotlin, etc.
|
||||||
# use list command for comprehensive list of candidates
|
# use list command for comprehensive list of candidates
|
||||||
# eg: $ sdk list
|
# eg: $ sdk list
|
||||||
#
|
|
||||||
# version : where optional, defaults to latest stable if not provided
|
# version : where optional, defaults to latest stable if not provided
|
||||||
# eg: $ sdk install groovy
|
# eg: $ sdk install groovy
|
||||||
|
# local-path : optional path to an existing local installation
|
||||||
|
# eg: $ sdk install groovy 2.4.13-local /opt/groovy-2.4.13
|
||||||
|
|
||||||
local _sdk_commands=(
|
local _sdk_commands=(
|
||||||
install i
|
install i
|
||||||
@ -68,7 +69,7 @@ _sdk () {
|
|||||||
compadd -- $SDKMAN_CANDIDATES ;;
|
compadd -- $SDKMAN_CANDIDATES ;;
|
||||||
offline) compadd -- enable disable ;;
|
offline) compadd -- enable disable ;;
|
||||||
selfupdate) compadd -- force ;;
|
selfupdate) compadd -- force ;;
|
||||||
flush) compadd -- candidates broadcast archives temp ;;
|
flush) compadd -- broadcast archives temp ;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
4) case "$words[2]" in
|
4) case "$words[2]" in
|
||||||
|
Loading…
Reference in New Issue
Block a user