Skip to content

Commit c04c8bf

Browse files
liviu-vasutLiviu Vasut
andauthored
added missing completions (#910)
Co-authored-by: Liviu Vasut <[email protected]>
1 parent cc571d3 commit c04c8bf

File tree

1 file changed

+3
-3
lines changed
  • contrib/completion/bash

1 file changed

+3
-3
lines changed

contrib/completion/bash/sdk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ __sdkman_complete_command() {
2222
sdk)
2323
candidates=("install" "uninstall" "list" "use" "completion" "config" "default" "home" "env" "current" "upgrade" "version" "broadcast" "help" "offline" "selfupdate" "update" "flush")
2424
;;
25-
use)
25+
current|default|home|uninstall|upgrade|use)
2626
local -r candidate_paths=("${SDKMAN_CANDIDATES_DIR}"/*)
2727

2828
for candidate_path in "${candidate_paths[@]}"; do
2929
candidates+=(${candidate_path##*/})
3030
done
3131
;;
32-
install)
32+
install|list)
3333
while IFS= read -d, -r candidate; do
3434
candidates+=($candidate)
3535
done < <(curl --silent "${SDKMAN_CANDIDATES_API}/candidates/all")
@@ -62,7 +62,7 @@ __sdkman_complete_candidate_version() {
6262
local candidates
6363

6464
case $command in
65-
use)
65+
use|default|home|uninstall)
6666
local -r version_paths=("${SDKMAN_CANDIDATES_DIR}/${candidate}"/*)
6767

6868
for version_path in "${version_paths[@]}"; do

0 commit comments

Comments
 (0)