Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running as module (python -m) completion? #55

Open
shachargluska opened this issue Oct 12, 2021 · 1 comment
Open

Running as module (python -m) completion? #55

shachargluska opened this issue Oct 12, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@shachargluska
Copy link

Hi.
I noticed that all the examples are centered around global scripts/entrypoints.
Is it possible to also complete "python -m" runs?
E.g.
python -m my_module.main ?

@casperdcl casperdcl added the enhancement New feature or request label Oct 15, 2021
@casperdcl
Copy link
Collaborator

casperdcl commented Oct 15, 2021

Nice idea.

unix.stackexchange#4219 assumes python -m my_module.main completion works and you want to get completion working for alias my_module='python -m my_module.main'. This issue is the opposite. If you can find some code which does it, would be happy to accept a suggestion/PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants