mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-11-29 03:31:01 +01:00
53393: Complete python module arguments
Python modules can behave like commands in their own right. This allows modules to define _python_module-* functions that are used to complete module arguments. Also gets the ball rolling by defining completions for venv, http.server, and json.tool.
This commit is contained in:
parent
1818323f45
commit
f77e469ad6
5 changed files with 46 additions and 0 deletions
8
Completion/Unix/Command/_python_module-http.server
Normal file
8
Completion/Unix/Command/_python_module-http.server
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
#autoload
|
||||
|
||||
_arguments -S \
|
||||
'(-h --help)'{-h,--help}'[show a help message and exit]' \
|
||||
'--cgi[run as CGI server]' \
|
||||
'(-b --bind)'{-b+,--bind=}'[bind to this address]:address:' \
|
||||
'(-d --directory)'{-d+,--directory=}'[serve this directory]:directory:_directories' \
|
||||
'(-p --protocol)'{-p+,--protocol=}'[conform to this HTTP version]:protcol version:(HTTP/1.0 HTTP/1.1)'
|
||||
Loading…
Add table
Add a link
Reference in a new issue