With the beta version 1.2.0b1 of Poetry I can see that sub-commands and their options show up in the generated zsh completion script.
However, there is some weird behavior when trying to tab-complete on zsh command line.
First of all, it completes the sub-command with an additional slash: poetry env\ info – which is not a valid command..
poetry env + tab adds the slash and shows the expected subcommands:
❯ poetry env\
env info -- Displays information about the current environment.
env list -- Lists all virtualenvs associated with the current project.
env remove -- Remove virtual environments associated with the project.
env use -- Activates or creates a new virtualenv for the current project.
Also, with this my zsh is unable to autocomplete the option(s) for the subcommand. I was trying poetry env info --p + tab, hoping to get --path completed but zsh just offers the global options of poetry:
❯ poetry env info --p
--help -- Display help for the given command. When no command is given display help for the list command.
--no-interaction -- Do not ask any interactive question.
--quiet -- Do not output any message.
--version -- Display this application version.
References:
With the beta version 1.2.0b1 of Poetry I can see that sub-commands and their options show up in the generated zsh completion script.
However, there is some weird behavior when trying to tab-complete on zsh command line.
First of all, it completes the sub-command with an additional slash:
poetry env\ info– which is not a valid command..poetry env+ tab adds the slash and shows the expected subcommands:Also, with this my zsh is unable to autocomplete the option(s) for the subcommand. I was trying
poetry env info --p+ tab, hoping to get--pathcompleted but zsh just offers the global options of poetry:References:
poetry envis missing sub-commands & options poetry#1855 (comment)