diff options
| author | Ronan Pigott <ronan@rjp.ie> | 2025-02-27 12:01:45 -0700 |
|---|---|---|
| committer | Oliver Kiddle <opk@zsh.org> | 2025-02-28 20:54:22 +0100 |
| commit | f77e469ad60973f45e1ee178f1d66686d326a75a (patch) | |
| tree | 102c83a9cf671145a121aa7c0af96c1b440959bc /Completion/Unix/Command/_python_module-http.server | |
| parent | github #129: fix _gpg completion (diff) | |
| download | zsh-f77e469ad60973f45e1ee178f1d66686d326a75a.tar zsh-f77e469ad60973f45e1ee178f1d66686d326a75a.tar.gz zsh-f77e469ad60973f45e1ee178f1d66686d326a75a.tar.bz2 zsh-f77e469ad60973f45e1ee178f1d66686d326a75a.tar.lz zsh-f77e469ad60973f45e1ee178f1d66686d326a75a.tar.xz zsh-f77e469ad60973f45e1ee178f1d66686d326a75a.tar.zst zsh-f77e469ad60973f45e1ee178f1d66686d326a75a.zip | |
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.
Diffstat (limited to 'Completion/Unix/Command/_python_module-http.server')
| -rw-r--r-- | Completion/Unix/Command/_python_module-http.server | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_python_module-http.server b/Completion/Unix/Command/_python_module-http.server new file mode 100644 index 000000000..e5ea4a8df --- /dev/null +++ b/Completion/Unix/Command/_python_module-http.server @@ -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)' |
