mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-17 15:01:40 +02:00
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.
14 lines
872 B
Text
14 lines
872 B
Text
#autoload
|
|
|
|
_arguments -S \
|
|
'(-h --help)'{-h,--help}'[show a help message and exit]' \
|
|
'--system-site-packages[give the virtual environment access to the system site-packages dir]' \
|
|
'(--symlinks --copies)--symlinks[try to use symlinks rather than copies]' \
|
|
'(--symlinks --copies)--copies[try to use copies rather than symlinks]' \
|
|
'(--clear --upgrade)--clear[delete the contents of the environment directory if it already exists]' \
|
|
'(--clear --upgrade)--upgrade[upgrade the environment directory to use this version of Python]' \
|
|
'--without-pip[skip installing or upgrading pip]' \
|
|
'--prompt[provides an alternative prompt prefix for the environment]' \
|
|
'--upgrade-deps[upgrade core dependencies to the latest version]' \
|
|
'--without-scm-ignore-files[skip adding SCM ignore files to the environment directory]'
|
|
'*::virtual environment:_directories'
|