diff options
author | Ross Goldberg <rgoldberg@users.noreply.github.com> | 2020-03-10 07:22:05 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-10 12:22:05 +0100 |
commit | a31dee2c14d926d681b96a8a80fb13a60bf8df64 (patch) | |
tree | 2394d466bfa1d7ab3d5061d2154f5e68203f9e5f /plugins/sdk | |
parent | e1a8d7c9772db760a77b83cf945fcd8b1fc08129 (diff) | |
download | zsh-a31dee2c14d926d681b96a8a80fb13a60bf8df64.tar.gz zsh-a31dee2c14d926d681b96a8a80fb13a60bf8df64.tar.bz2 zsh-a31dee2c14d926d681b96a8a80fb13a60bf8df64.zip |
sdk: remove invalid value "candidates" from sdk flush completion (#8725)
Diffstat (limited to 'plugins/sdk')
-rw-r--r-- | plugins/sdk/sdk.plugin.zsh | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/plugins/sdk/sdk.plugin.zsh b/plugins/sdk/sdk.plugin.zsh index 13876bfd0..e49caaf2f 100644 --- a/plugins/sdk/sdk.plugin.zsh +++ b/plugins/sdk/sdk.plugin.zsh @@ -7,10 +7,10 @@ # sdk offline <enable|disable> # # commands: -# install or i <candidate> [version] +# install or i <candidate> [version] [local-path] # uninstall or rm <candidate> <version> # list or ls [candidate] -# use or u <candidate> [version] +# use or u <candidate> <version> # default or d <candidate> [version] # current or c [candidate] # upgrade or ug [candidate] @@ -20,14 +20,15 @@ # offline [enable|disable] # selfupdate [force] # update -# flush <candidates|broadcast|archives|temp> +# flush <broadcast|archives|temp> # # candidate : the SDK to install: groovy, scala, grails, gradle, kotlin, etc. # use list command for comprehensive list of candidates # eg: $ sdk list -# # version : where optional, defaults to latest stable if not provided # 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=( install i @@ -68,7 +69,7 @@ _sdk () { compadd -- $SDKMAN_CANDIDATES ;; offline) compadd -- enable disable ;; selfupdate) compadd -- force ;; - flush) compadd -- candidates broadcast archives temp ;; + flush) compadd -- broadcast archives temp ;; esac ;; 4) case "$words[2]" in |