shtab icon indicating copy to clipboard operation
shtab copied to clipboard

Running as module (python -m) completion?

Open shachargluska opened this issue 4 years ago • 1 comments

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 <TAB> ?

shachargluska avatar Oct 12 '21 08:10 shachargluska

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.

casperdcl avatar Oct 15 '21 14:10 casperdcl