forked from zsh-users/zsh-completions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_tox
61 lines (57 loc) · 2.67 KB
/
_tox
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#compdef tox
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for tox (https://tox.readthedocs.io).
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * Julien Nicoulaud <[email protected]>
#
# ------------------------------------------------------------------------------
(( $+functions[_tox_envs_list] )) ||
_tox_envs_list() {
local envs; envs=($(_call_program envs $service --listenvs-all))
if [ ${#envs} -gt 0 ]; then
_values -s , 'tox environments' "${envs[@]}"
else
_message 'tox environments (none found)'
fi
}
_arguments \
'(- 1 *)--version[show version and exit]' \
'(- 1 *)'{-h,--help}'[show help options]' \
'(- 1 *)'{--hi,--help-ini}'[show help about ini-names]' \
'*-v[increase verbosity of reporting output]' \
'*-q[progressively silence reporting output]' \
'(- 1 *)--showconfig[show configuration information for all environments]' \
'(- 1 *)'{-l,--listenvs}'[show list of test environments]' \
'(- 1 *)'{-a,--listenvs-all}'[show list of all defined environments]' \
'-c[config file name or directory with "tox.ini" file]:config path:_files -g "*.ini"' \
'-e[work against specified environments]: :_tox_envs_list' \
'--notest[skip invoking test commands]' \
'--sdistonly[only perform the sdist packaging activity]' \
'--parallel--safe-build[ensure two tox builds can run in parallel]' \
'--installpkg[ensure two tox builds can run in parallel]:package path:_files -/' \
'--develop[install package in the venv using "setup.py develop"]' \
'(-i --index-url)'{-i,--index-url}'[set indexserver url]:index server URL:_urls' \
'--pre[install pre-releases and development versions of dependencies]' \
'(-r --recreate)'{-r,--recreate}'[force recreation of virtual environments]' \
'--result-json[write a json file with detailed information about all commands and results involved]:JSON file path:_files -g "*.json"' \
'--hashseed[set PYTHONHASHSEED to SEED before running commands]:seed' \
'*--force-dep[forces a certain version of one of the dependencies when configuring the virtual environment]:pip requirement' \
'--sitepackages[override sitepackages setting to True in all envs]' \
'--alwayscopy[override alwayscopy setting to True in all envs]' \
'--skip-missing-interpreters[do not fail tests for missing interpreters]: :(config true false)' \
'--workdir[tox working directory]: :_files -/' \
'*: :_guard "^-*" command positional substitution arguments'
# Local Variables:
# mode: Shell-Script
# sh-indentation: 2
# indent-tabs-mode: nil
# sh-basic-offset: 2
# End:
# vim: ft=zsh sw=2 ts=2 et