Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Oh My Zsh
Commits
a31dee2c
Unverified
Commit
a31dee2c
authored
Mar 10, 2020
by
Ross Goldberg
Committed by
GitHub
Mar 10, 2020
Browse files
sdk: remove invalid value "candidates" from sdk flush completion (#8725)
parent
e1a8d7c9
Changes
1
Show whitespace changes
Inline
Side-by-side
plugins/sdk/sdk.plugin.zsh
View file @
a31dee2c
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment