flox icon indicating copy to clipboard operation
flox copied to clipboard

flox install/uninstall autocomplete

Open ghudgins opened this issue 1 year ago • 4 comments

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)

ghudgins avatar Dec 21 '23 21:12 ghudgins

should prob be two issues since the completion uses different sources I'd estimate each as 3, install on ther upper end of 3

ysndr avatar Jan 16 '24 15:01 ysndr

Could be problematic because we don't know which environment to use and we won't know before they hit enter.

jennymahmoudi avatar Jan 24 '24 18:01 jennymahmoudi

could we add a case that says don't do autocomplete when you could have multiple targets?

ghudgins avatar Jan 24 '24 23:01 ghudgins

could we add a case that says don't do autocomplete when you could have multiple targets?

Yes

mkenigs avatar Jan 25 '24 01:01 mkenigs