Adds dummy completions instead of available versions.

Should reduce confusion until issue #4 is handled.
This commit is contained in:
Raphael Reitzig 2018-07-16 23:10:49 +02:00
parent e354f8abe6
commit 08404e48fa
2 changed files with 1 additions and 1 deletions

View file

@ -101,6 +101,7 @@ complete -c sdk -f -n '__fish_sdkman_sdk_is_missing'
# install
complete -c sdk -f -n '__fish_sdkman_no_command' -a 'i install' -d 'Install new version'
complete -c sdk -f -n '__fish_sdkman_using_command i install' -a "(__fish_sdkman_candidates)"
complete -c sdk -f -n '__fish_sdkman_specifying_candidate i install' -a "a.b.c x.y.z" -d "version list unavailable"
# TODO complete available versions --> #4
complete -c sdk -f -n '__fish_sdkman_command_has_enough_parameters 2 i install' # block

View file

@ -60,7 +60,6 @@ test_cases = {
"current an" => ["ant"],
"current xyz" => [],
# "default j" => [], # TODO: should uninstalled candidates complete here?
"current 1." => [],
"upgrade " => ["ant"],