a31dee2c14d926d681b96a8a80fb13a60bf8df64

Author
Ross Goldberg <rgoldberg@users.noreply.github.com>
Committer
GitHub <noreply@github.com>
Date

Message

sdk: remove invalid value "candidates" from sdk flush completion (#8725)

Diff

 1diff --git a/plugins/sdk/sdk.plugin.zsh b/plugins/sdk/sdk.plugin.zsh
 2index 13876bfd065a8a2ad4ba7d6a2818169c0b4d29b7..e49caaf2f9c74692b2fbb76c6c6c02395b22dd73 100644
 3--- a/plugins/sdk/sdk.plugin.zsh
 4+++ b/plugins/sdk/sdk.plugin.zsh
 5@@ -7,10 +7,10 @@
 6 #        sdk offline <enable|disable>
 7 #
 8 #    commands:
 9-#        install   or i    <candidate> [version]
10+#        install   or i    <candidate> [version] [local-path]
11 #        uninstall or rm   <candidate> <version>
12 #        list      or ls   [candidate]
13-#        use       or u    <candidate> [version]
14+#        use       or u    <candidate> <version>
15 #        default   or d    <candidate> [version]
16 #        current   or c    [candidate]
17 #        upgrade   or ug   [candidate]
18@@ -20,14 +20,15 @@
19 #        offline           [enable|disable]
20 #        selfupdate        [force]
21 #        update
22-#        flush             <candidates|broadcast|archives|temp>
23+#        flush             <broadcast|archives|temp>
24 #
25 #    candidate  :  the SDK to install: groovy, scala, grails, gradle, kotlin, etc.
26 #                  use list command for comprehensive list of candidates
27 #                  eg: $ sdk list
28-#
29 #    version    :  where optional, defaults to latest stable if not provided
30 #                  eg: $ sdk install groovy
31+#    local-path :  optional path to an existing local installation
32+#                  eg: $ sdk install groovy 2.4.13-local /opt/groovy-2.4.13
33 
34 local _sdk_commands=(
35     install     i
36@@ -68,7 +69,7 @@ _sdk () {
37                       compadd -- $SDKMAN_CANDIDATES ;;
38           offline)    compadd -- enable disable ;;
39           selfupdate) compadd -- force ;;
40-          flush)      compadd -- candidates broadcast archives temp ;;
41+          flush)      compadd -- broadcast archives temp ;;
42         esac
43         ;;
44     4)  case "$words[2]" in