Open cfauchereau opened 1 year ago
Thanks for the suggestion @cfauchereau. :smile: Unfortunately, -f
is also used for --force-*
by some sub-commands (like, clean
and remove
) so this would produce confusing completion results. :crying_cat_face: I think we would need somethings much more complex to account for all the variations.
Fair enough. -f
for --file
is only used for the env
subcommand. Fortunately it is easy to find the subcommand if any. I updated the code to take that into account.
Fair enough.
-f
for--file
is only used for theenv
subcommand. Fortunately it is easy to find the subcommand if any. I updated the code to take that into account.
Awesome! The only thing we need now is some tests. :smile:
I added tests.
I had issues with running the tests. Most notably I add to remove set -o posix
in tests/fixture/bashrc
for it to work.
Also some tests don't pass. I think it is due to conda changing some of their commands.
Hi @cfauchereau :wave: Just a heads up that I might not get a chance to review this for a week or so. Feel free to ping me in another week if I've not got back to this. :smile:
For now, the option
--file
autocomplete with filenames but not its alias-f
. This is a simple fix to handle-f
.