python-poetry / cleo

Cleo allows you to create beautiful and testable command-line interfaces.

Home Page:https://cleo.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tab completion for Windows Powershell

hmleal opened this issue · comments

  • I have searched the issues of this repo and believe that this is not a duplicate.
  • I have searched the documentation and believe that my question is not covered.

Feature Request

I't would be nice to have a tab completion for Windows Powershell, we can easily implement this using:

Register-ArgumentCompleter -Native -CommandName poetry -ScriptBlock {
  # TODO
}

I can start to implement it if more people or the poetry author support the idea.

@hmleal are you still interested in helping with that? I moved the issue from the Poetry repository since Cleo powers Poetry completions. You can look at the code in https://github.com/python-poetry/cleo/blob/main/src/cleo/commands/completions_command.py for reference on how it's done for Linux shells.

Can we see Powershell instead/as well?