From 08404e48faf389ab01782eb53ea56526df0aca06 Mon Sep 17 00:00:00 2001 From: Raphael Reitzig <4246780+reitzig@users.noreply.github.com> Date: Mon, 16 Jul 2018 23:10:49 +0200 Subject: [PATCH] Adds dummy completions instead of available versions. Should reduce confusion until issue #4 is handled. --- completions/sdk.fish | 1 + test/completion.rb | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/completions/sdk.fish b/completions/sdk.fish index 1b9e393..9d162d1 100644 --- a/completions/sdk.fish +++ b/completions/sdk.fish @@ -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 diff --git a/test/completion.rb b/test/completion.rb index 689a5d5..a33a946 100644 --- a/test/completion.rb +++ b/test/completion.rb @@ -60,7 +60,6 @@ test_cases = { "current an" => ["ant"], "current xyz" => [], - # "default j" => [], # TODO: should uninstalled candidates complete here? "current 1." => [], "upgrade " => ["ant"],