Format sdkman bash completion with shfmt

pull/1775/head
Marcos Pereira 2021-01-08 16:42:18 -05:00
parent 56348b1a12
commit fe7d3ef177
No known key found for this signature in database
GPG Key ID: F7EBB0FF122A3D87
1 changed files with 55 additions and 56 deletions

View File

@ -1,5 +1,4 @@
_sdkman_complete()
{
_sdkman_complete() {
local CANDIDATES
local CANDIDATE_VERSIONS
@ -25,8 +24,8 @@ _sdkman_complete()
"flush")
mapfile -t COMPREPLY < <(compgen -W "archives tmp broadcast version" -- "${COMP_WORDS[COMP_CWORD]}")
;;
*)
;;
*) ;;
esac
elif [ "$COMP_CWORD" -eq 3 ]; then
case "${COMP_WORDS[COMP_CWORD - 2]}" in
@ -38,8 +37,8 @@ _sdkman_complete()
_sdkman_candidate_all_versions "${COMP_WORDS[COMP_CWORD - 1]}"
mapfile -t COMPREPLY < <(compgen -W "$CANDIDATE_VERSIONS" -- "${COMP_WORDS[COMP_CWORD]}")
;;
*)
;;
*) ;;
esac
fi