- Poetry version:
1.5.1
- Python version:
3.11.4
- OS version and name:
macOS 13.4.1
- pyproject.toml:
N/A
Issue
The fish completions do not work for subcommand specific options.
For example - as stated in #437:
poetry env info can be followed by the --executable option.
- however, trying
poetry env info --e TAB does not complete to --executable
The following line is responsible for defining the completion:
complete -c poetry -A -n '__fish_seen_subcommand_from "env info"' -l executable -d 'Only display the environment\'s python executable path.'
If I remove the quotes around "env info", then the tab completion starts working for poetry env info --e.
However, that causes poetry env use --e TAB to also autocomplete to --executable which is wrong.
I was able to get completions typing poerty 'env info' --e TAB - but it is just a workaround, to show what it is currently looking for.
After some digging, it seems to me that the fish-shell/fish-shell#7107 issue is tackling a similar problem (nested subcommand and option parsing), might be worth looking into once it's resolved.
1.5.13.11.4macOS 13.4.1N/A-vvvoption) and have included the output below.Issue
The fish completions do not work for subcommand specific options.
For example - as stated in #437:
poetry env infocan be followed by the--executableoption.poetry env info --eTAB does not complete to--executableThe following line is responsible for defining the completion:
If I remove the quotes around
"env info", then the tab completion starts working forpoetry env info --e.However, that causes
poetry env use --eTAB to also autocomplete to--executablewhich is wrong.I was able to get completions typing
poerty 'env info' --eTAB - but it is just a workaround, to show what it is currently looking for.After some digging, it seems to me that the fish-shell/fish-shell#7107 issue is tackling a similar problem (nested subcommand and option parsing), might be worth looking into once it's resolved.