Fix completions.

cf. issue #35
This commit is contained in:
Raphael Reitzig 2020-12-14 02:48:47 +01:00
parent 193189ed91
commit 8fe9d790c6

View file

@ -174,7 +174,7 @@ complete -c sdk -f -n '__fish_sdkman_command_has_enough_parameters 0 b broadcast
# help # help
complete -c sdk -f -n '__fish_sdkman_no_command' \ complete -c sdk -f -n '__fish_sdkman_no_command' \
-a 'h help' \ -a 'help' \
-d 'Display help message' -d 'Display help message'
complete -c sdk -f -n '__fish_sdkman_command_has_enough_parameters 0 h help' complete -c sdk -f -n '__fish_sdkman_command_has_enough_parameters 0 h help'
# block # block
@ -212,15 +212,39 @@ complete -c sdk -f -n '__fish_sdkman_command_has_enough_parameters 0 update'
# flush # flush
complete -c sdk -f -n '__fish_sdkman_no_command' \ complete -c sdk -f -n '__fish_sdkman_no_command' \
-a 'flush' \ -a 'flush' \
-d 'Clear out caches' -d 'Clear out archives and temporary storage folders'
complete -c sdk -f -n '__fish_sdkman_using_command flush' \ complete -c sdk -f -n '__fish_sdkman_using_command flush' \
-a 'broadcast' \ -a 'broadcast' \
-d 'Re-download news' -d 'Clear out the broadcast/news cache'
complete -c sdk -f -n '__fish_sdkman_using_command flush' \ complete -c sdk -f -n '__fish_sdkman_using_command flush' \
-a 'archives' \ -a 'archives' \
-d 'Remove downloads' -d 'Remove downloads'
complete -c sdk -f -n '__fish_sdkman_using_command flush' \ complete -c sdk -f -n '__fish_sdkman_using_command flush' \
-a 'temp' \ -a 'tmp' \
-d 'Clear installation prep folder' -d 'Clear out staging work folder'
complete -c sdk -f -n '__fish_sdkman_using_command flush' \
-a 'version' \
-d 'Flush version file'
complete -c sdk -f -n '__fish_sdkman_command_has_enough_parameters 1 flush' complete -c sdk -f -n '__fish_sdkman_command_has_enough_parameters 1 flush'
# block # block
# env
complete -c sdk -f -n '__fish_sdkman_no_command' \
-a 'e env' \
-d 'Load environment from .sdkmanrc file'
complete -c sdk -f -n '__fish_sdkman_using_command e env' \
-a 'init' \
-d 'Initialize .sdkmanrc file'
complete -c sdk -f -n '__fish_sdkman_command_has_enough_parameters 1 e env'
# block
# home
complete -c sdk -f -n '__fish_sdkman_no_command' \
-a 'h home' \
-d 'Show installation folder of given candidate'
complete -c sdk -f -n '__fish_sdkman_using_command h home' \
-a "(__fish_sdkman_candidates_with_versions)"
complete -c sdk -f -n '__fish_sdkman_specifying_candidate h home' \
-a "(__fish_sdkman_installed_versions)"
complete -c sdk -f -n '__fish_sdkman_command_has_enough_parameters 2 h home'
# block