Propose only installed candidates where appropriate.

Resolves issue #13.
This commit is contained in:
Raphael Reitzig 2018-07-15 12:41:44 +02:00
parent e13d3f2f50
commit fd1b0b94ce
2 changed files with 18 additions and 12 deletions

View file

@ -40,7 +40,7 @@ test_cases = {
"install 1." => [],
"uninstall " => ["ant"],
"uninstall an" => ["ant"],
"uninstall a" => ["ant"],
"uninstall j" => [],
"uninstall 1." => [],
@ -87,19 +87,19 @@ test_cases = {
"update a" => [],
"flush " => ["broadcast", "archives", "temp"],
"flush a" => [],
"flush x" => [],
# Third parameters complete correctly
#"install ant 1.10." => ["1.10.0", "1.10.1"], # TODO: issue #4
"uninstall ant 1.10." => ["1.10.1"],
"list " => [],
"list ant " => [],
"use ant " => ["1.9.9", "1.10.1"],
"default ant " => ["1.9.9", "1.10.1"],
"current " => [],
"upgrade " => [],
"offline " => [],
"selfupdate " => [],
"flush " => [],
"current ant " => [],
"upgrade ant " => [],
"offline ant " => [],
"selfupdate ant " => [],
"flush ant " => [],
# Fourth parameters complete correctly
"install ant 1.10.2 " => [],