From c04c8bf86c73c9ea3a8a24dd10cc32a0c8ccf0ce Mon Sep 17 00:00:00 2001 From: liviu-vasut Date: Thu, 13 May 2021 15:01:39 +0300 Subject: [PATCH] added missing completions (#910) Co-authored-by: Liviu Vasut --- contrib/completion/bash/sdk | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/contrib/completion/bash/sdk b/contrib/completion/bash/sdk index 2c9c0b17..fe03f138 100644 --- a/contrib/completion/bash/sdk +++ b/contrib/completion/bash/sdk @@ -22,14 +22,14 @@ __sdkman_complete_command() { sdk) candidates=("install" "uninstall" "list" "use" "completion" "config" "default" "home" "env" "current" "upgrade" "version" "broadcast" "help" "offline" "selfupdate" "update" "flush") ;; - use) + current|default|home|uninstall|upgrade|use) local -r candidate_paths=("${SDKMAN_CANDIDATES_DIR}"/*) for candidate_path in "${candidate_paths[@]}"; do candidates+=(${candidate_path##*/}) done ;; - install) + install|list) while IFS= read -d, -r candidate; do candidates+=($candidate) done < <(curl --silent "${SDKMAN_CANDIDATES_API}/candidates/all") @@ -62,7 +62,7 @@ __sdkman_complete_candidate_version() { local candidates case $command in - use) + use|default|home|uninstall) local -r version_paths=("${SDKMAN_CANDIDATES_DIR}/${candidate}"/*) for version_path in "${version_paths[@]}"; do