flox
flox copied to clipboard
flox install/uninstall autocomplete
Acceptance Criteria
Install
Given I have an updated pkgdb (should come this way out of the installer)
When I type flox install rails.
Then I see a temporary list display (autocomplete behavior)
Then I see a list displayed of possible matches
And When I arrow up/down to rubyPackages_2_7.rails
And press tab
Then I see rubyPackages_2_7.rails was auto completed
Note: this might not be the end-state desired interaction. We should review this with @jennymahmoudi before starting on it
Uninstall
Given I have an 3 packages installed with ID's 1/ package1 2/ package2 and 3/ package3
When I type flox uninstall p
Then I see a temporary list display (autocomplete behavior)
Then I see a list displayed of possible matches
And When I arrow up/down to package3
And press tab
Then I see package3 was auto completed
Don't autocomplete when there are multiple possible installation targets
Given I am in a remote environment I own
And I am in a directory with a path environment
When I type flox install pytho
Then I do not see auto complete results (we are not sure which metadata to search)
should prob be two issues since the completion uses different sources I'd estimate each as 3, install on ther upper end of 3
Could be problematic because we don't know which environment to use and we won't know before they hit enter.
could we add a case that says don't do autocomplete when you could have multiple targets?
could we add a case that says don't do autocomplete when you could have multiple targets?
Yes