View | Details | Raw Unified | Return to bug 46324
Collapse All | Expand All

(-)zsh-completions-0.32.0/README.md (-5 / +11 lines)
Lines 22-27 Link Here
22
| Slackware | [Slackbuilds](https://slackbuilds.org/repository/14.2/system/zsh-completions/) |
22
| Slackware | [Slackbuilds](https://slackbuilds.org/repository/14.2/system/zsh-completions/) |
23
| macOS | [homebrew](https://github.com/Homebrew/homebrew-core/blob/master/Formula/zsh-completions.rb), [MacPorts](https://github.com/macports/macports-ports/blob/master/sysutils/zsh-completions/Portfile)  |
23
| macOS | [homebrew](https://github.com/Homebrew/homebrew-core/blob/master/Formula/zsh-completions.rb), [MacPorts](https://github.com/macports/macports-ports/blob/master/sysutils/zsh-completions/Portfile)  |
24
| NetBSD | [pkgsrc](http://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/shells/zsh-completions/README.html)  |
24
| NetBSD | [pkgsrc](http://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/shells/zsh-completions/README.html)  |
25
| FreeBSD | [shells/zsh-completions](https://www.freshports.org/shells/zsh-completions)  |
25
26
26
27
27
### Using zsh frameworks
28
### Using zsh frameworks
Lines 34-51 Link Here
34
35
35
* Clone the repository inside your oh-my-zsh repo:
36
* Clone the repository inside your oh-my-zsh repo:
36
37
37
        git clone https://github.com/zsh-users/zsh-completions ${ZSH_CUSTOM:=~/.oh-my-zsh/custom}/plugins/zsh-completions
38
        git clone https://github.com/zsh-users/zsh-completions ${ZSH_CUSTOM:-${ZSH:-~/.oh-my-zsh}/custom}/plugins/zsh-completions
38
39
39
* Enable it in your `.zshrc` by adding it to your plugin list and reloading the completion:
40
* Add it to `FPATH` in your `.zshrc` by adding the following line before `source "$ZSH/oh-my-zsh.sh"`:
40
41
41
        plugins=(… zsh-completions)
42
        fpath+=${ZSH_CUSTOM:-${ZSH:-~/.oh-my-zsh}/custom}/plugins/zsh-completions/src
42
        autoload -U compinit && compinit
43
43
44
Note: adding it as a regular Oh My ZSH! plugin will not work properly (see [#603](https://github.com/zsh-users/zsh-completions/issues/603)).
45
46
#### [zinit](https://github.com/zdharma-continuum/zinit)
47
48
Add `zinit light zsh-users/zsh-completions` to your `~/.zshrc`.
49
44
### Manual installation
50
### Manual installation
45
51
46
* Clone the repository:
52
* Clone the repository:
47
53
48
        git clone git://github.com/zsh-users/zsh-completions.git
54
        git clone https://github.com/zsh-users/zsh-completions.git
49
55
50
* Include the directory in your `$fpath`, for example by adding in `~/.zshrc`:
56
* Include the directory in your `$fpath`, for example by adding in `~/.zshrc`:
51
57
(-)zsh-completions-0.32.0/src/_bundle (-1 / +6 lines)
Lines 54-59 Link Here
54
			"package[Package the .gem files required by your application]" \
54
			"package[Package the .gem files required by your application]" \
55
			"exec[Execute a script in the context of the current bundle]" \
55
			"exec[Execute a script in the context of the current bundle]" \
56
			"config[Specify and read configuration options for bundler]" \
56
			"config[Specify and read configuration options for bundler]" \
57
			"add[Add the named gem to the Gemfile and run bundle install]" \
58
			"binstubs[Generate binstubs for executables in a gem]" \
57
			"check[Determine whether the requirements for your application are installed]" \
59
			"check[Determine whether the requirements for your application are installed]" \
58
			"list[Show all of the gems in the current bundle]" \
60
			"list[Show all of the gems in the current bundle]" \
59
			"show[Show the source location of a particular gem in the bundle]" \
61
			"show[Show the source location of a particular gem in the bundle]" \
Lines 64-76 Link Here
64
			"gem[Create a simple gem, suitable for development with bundler]" \
66
			"gem[Create a simple gem, suitable for development with bundler]" \
65
			"help[Describe available tasks or one specific task]" \
67
			"help[Describe available tasks or one specific task]" \
66
			"platform[Displays platform compatibility information]" \
68
			"platform[Displays platform compatibility information]" \
69
			"clean[Clean up unused gems in your Bundler directory]" \
70
			"doctor[Display warnings about common problems]" \
71
			"remove[Removes gems from the Gemfile]" \
67
			"outdated[Show all of the outdated gems in the current bundle]"
72
			"outdated[Show all of the outdated gems in the current bundle]"
68
		ret=0
73
		ret=0
69
		;;
74
		;;
70
	args)
75
	args)
71
		case $line[1] in
76
		case $line[1] in
72
			help)
77
			help)
73
				_values 'commands' 'install' 'update' 'package' 'exec' 'config' 'check' 'list' 'show' 'console' 'open' 'viz' 'init' 'gem' 'help' 'platform' 'outdated' && ret=0
78
				_values 'commands' 'install' 'update' 'package' 'exec' 'config' 'add' 'binstubs' 'check' 'list' 'show' 'console' 'open' 'viz' 'init' 'gem' 'help' 'platform' 'clean' 'doctor' 'remove' 'outdated' && ret=0
74
				;;
79
				;;
75
			install)
80
			install)
76
				_policies=('HighSecurity' 'MediumSecurity' 'LowSecurity' 'AlmostNoSecurity' 'NoSecurity')
81
				_policies=('HighSecurity' 'MediumSecurity' 'LowSecurity' 'AlmostNoSecurity' 'NoSecurity')
(-)zsh-completions-0.32.0/src/_ccache (-2 / +2 lines)
Lines 210-216 Link Here
210
  'read_only:treat cache as read-only'
210
  'read_only:treat cache as read-only'
211
  'read_only_direct:retrieve from read-only cache in direct mode'
211
  'read_only_direct:retrieve from read-only cache in direct mode'
212
  'recache:use cache in write-only mode'
212
  'recache:use cache in write-only mode'
213
  'run_second_cpp:pass originial rather than preprocessed source code to compiler'
213
  'run_second_cpp:pass original rather than preprocessed source code to compiler'
214
  'stats:update statistics counters'
214
  'stats:update statistics counters'
215
  'unify:normalise sources prior to processing'
215
  'unify:normalise sources prior to processing'
216
  'base_dir:specify relative to which top level paths are hashed'
216
  'base_dir:specify relative to which top level paths are hashed'
Lines 310-316 Link Here
310
    '(-z --zero-stats)'{-z,--zero-stats}'[zero statistics counters]' \
310
    '(-z --zero-stats)'{-z,--zero-stats}'[zero statistics counters]' \
311
    '(-c --cleanup)'{-c,--cleanup}'[delete old files and recalculate size counters]' \
311
    '(-c --cleanup)'{-c,--cleanup}'[delete old files and recalculate size counters]' \
312
    '(-C --clear)'{-C,--clear}'[clear the cache completely (except configuration)]' \
312
    '(-C --clear)'{-C,--clear}'[clear the cache completely (except configuration)]' \
313
    '(-p --print-config)'{-p,--print-config}'[print current configuration options]' \
313
    '(-p --show-config)'{-p,--show-config}'[show current configuration options]' \
314
    '(-s --show-stats)'{-s,--show-stats}'[show statistics summary]' \
314
    '(-s --show-stats)'{-s,--show-stats}'[show statistics summary]' \
315
    '(-F --max-files=)'{-F,--max-files=}'[set maximum number of files in cache]:number of files in cache: ' \
315
    '(-F --max-files=)'{-F,--max-files=}'[set maximum number of files in cache]:number of files in cache: ' \
316
    '(-M --max-size=)'{-M,--max-size=}'[set maximum size of cache]:cache size: '
316
    '(-M --max-size=)'{-M,--max-size=}'[set maximum size of cache]:cache size: '
(-)zsh-completions-0.32.0/src/_cmake (-157 / +180 lines)
Lines 36-41 Link Here
36
#
36
#
37
#  * Scott M. Kroll <skroll@gmail.com> (initial version)
37
#  * Scott M. Kroll <skroll@gmail.com> (initial version)
38
#  * Paul Seyfert <pseyfert.mathphys@gmail.com> (handling of --build and updates)
38
#  * Paul Seyfert <pseyfert.mathphys@gmail.com> (handling of --build and updates)
39
#  * Norbert Lange <nolange79@gmail.com> (presets, command mode, updates)
39
#
40
#
40
# -------------------------------------------------------------------------
41
# -------------------------------------------------------------------------
41
# Notes
42
# Notes
Lines 53-81 Link Here
53
local context state line curcontext="$curcontext" cmake_args
54
local context state line curcontext="$curcontext" cmake_args
54
55
55
local cmake_build_options;cmake_build_options=(
56
local cmake_build_options;cmake_build_options=(
56
    '-C[Pre-load a script to populate the cache]:script:_files'
57
    '-S[Explicitly specify a source directory]:source directory:_path_files -/'
57
    '*-D-[Create a CMake cache entry]:property:_cmake_define_property'
58
    '-B[Explicitly specify a build directory]:build directory:_path_files -/'
58
    '-U[Remove matching entries from CMake cache]:globbing expression'
59
    '-C[Pre-load a script to populate the cache]:initial cache:_files'
59
    '-G[Specify a Makefile generator]:generator:_cmake_generators'
60
    '*-D-[Create a cmake cache entry]:property:_cmake_define_property'
61
    '*-U[Remove matching entries from CMake cache]:globbing expression'
62
    '-G[Specify a makefile generator]:generator:_cmake_generators'
60
    '-T[Specify toolset name if supported by generator]:toolset name'
63
    '-T[Specify toolset name if supported by generator]:toolset name'
61
    '(-Wno-dev -Wdev)-Wno-dev[Suppress/Enable developer warnings]'
64
    '-A[Specify platform name if supported by generator]:platform name'
62
    '(-Wno-dev -Wdev)-Wdev[Suppress/Enable developer warnings]'
65
63
    '(-Wno-deprecated -Wdeprecated)-Wno-deprecated[Suppress/Enable deprecation warnings]'
66
    # Warnings
64
    '(-Wno-deprecated -Wdeprecated)-Wdeprecated[Suppress/Enable deprecation warnings]'
67
    '(-Wdev)-Wno-dev[Suppress/Enable developer warnings]'
65
    '(-Wno-error=dev -Werror=dev)-Wno-error=dev[Make developer warnings (not) errors]'
68
    '(-Wno-dev)-Wdev[Suppress/Enable developer warnings]'
66
    '(-Wno-error=dev -Werror=dev)-Werror=dev[Make developer warnings (not) errors]'
69
    '(-Wdeprecated)-Wno-deprecated[Suppress/Enable deprecation warnings]'
67
    '(-Wno-error=deprecated -Werror=deprecated)-Werror=deprecated[Make deprecated macro and function warnings (not) errors]'
70
    '(-Wno-deprecated)-Wdeprecated[Suppress/Enable deprecation warnings]'
68
    '(-Wno-error=deprecated -Werror=deprecated)-Wno-error=deprecated[Make deprecated macro and function warnings (not) errors]'
71
    '(-Werror=dev)-Wno-error=dev[Make developer warnings (not) errors]'
69
    '--warn-uninitialized[Warn about uninitialized values.]'
72
    '(-Wno-error=dev)-Werror=dev[Make developer warnings (not) errors]'
70
    '--warn-unused-vars[Warn about unused variables.]'
73
    '(-Wno-error=deprecated)-Werror=deprecated[Make deprecated macro and function warnings (not) errors]'
71
    '--no-warn-unused-cli[Don'\''t warn about command line options.]'
74
    '(-Werror=deprecated)-Wno-error=deprecated[Make deprecated macro and function warnings (not) errors]'
72
    '-i[Run in wizard mode]'
75
76
    '--preset=[Specify a configure preset]:preset:_cmake_presets'
77
    '--list-presets[List available presets]'
78
79
    '-E[CMake command mode]:command:_cmake_command_help'
80
73
    '-L-[List cache variables]::_values "options" "[non-advanced cache variables]" "A[advanced cache variables]" "H[non-advanced cached variables with help]" "AH[advanced cache variables with help]"'
81
    '-L-[List cache variables]::_values "options" "[non-advanced cache variables]" "A[advanced cache variables]" "H[non-advanced cached variables with help]" "AH[advanced cache variables with help]"'
74
    '--trace[Put cmake in trace mode]'
82
75
    '--trace-redirect=[redirect trace output to file]:trace file:_files'
83
    '--build[Build a CMake-generated project binary tree]:project directory:_path_files -/'
76
    '--log-level=[only print messages at or above the specified log level]:loglevel:(ERROR WARNING NOTICE STATUS VERBOSE DEBUG TRACE)'
84
    '--install[Install a CMake-generated project binary tree]:project directory:_path_files -/'
77
    '--find-package[Run in pkg-config like mode.]'
85
    '--open[Open generated project in the associated application]:project directory:_path_files -/'
78
    ':cmake project:_files -/'
86
87
    '-N[View mode only]'
88
    '-P[Process script mode]:script:_files'
89
90
    '--find-package[Legacy pkg-config like mode. Do not use]'
91
92
    '--graphviz=[Generate graphviz of dependencies, see CMakeGraphVizOptions.cmake for more]:graphviz output:_files'
93
    '--system-information[Dump information about this system]::system information output:_files'
94
95
    '--log-level=[Set the verbosity of messages from CMake files]:log level:(ERROR WARNING NOTICE STATUS VERBOSE DEBUG TRACE)'
96
    '--log-context[Prepend log messages with context, if given]'
97
98
    '--debug-trycompile[Do not delete the try_compile build tree. Only useful on one try_compile at a time]'
99
    '--debug-output[Put cmake in a debug mode]'
100
    '--debug-find[Put cmake find in a debug mode]'
101
102
    '(--trace-expand)--trace[Put cmake in trace mode]'
103
    '(--trace)--trace-expand[Put cmake in trace mode with variable expansion]'
104
    '--trace-format=[Set the output format of the trace]:trace format:(human json-v1)'
105
    '*--trace-source[Trace only this CMake file/module. Multiple options allowed]:filename:_files'
106
    '--trace-redirect[Redirect trace output to a file instead of stderr]:trace output:_files'
107
108
    '--warn-uninitialized[Warn about uninitialized values]'
109
    '--no-warn-unused-cli[Do not warn about command line options]'
110
    '--warn-unused-vars[Warn about unused variables]'
111
    '--check-system-vars[Find problems with variable usage in system files]'
112
113
    '--profiling-format[Output data for profiling CMake scripts]:profiling format:(google-trace)'
114
    '--profiling-output[Select an output path for the profiling data]:filename:_files'
115
116
    ':cmake project:_path_files -/'
79
)
117
)
80
118
81
# ------------------------
119
# ------------------------
Lines 99-104 Link Here
99
}
137
}
100
138
101
# --------------
139
# --------------
140
# _cmake_presets
141
# --------------
142
(( $+functions[_cmake_presets] )) ||
143
_cmake_presets() {
144
  # TODO: Problems with quotes need eval
145
  # would need a way to exec the array
146
  local -a list_presets;
147
148
  if [[ -e CMakePresets.json ]]; then
149
    # some old projects uses BOM in json file. strip UTF-8 BOM and then parse JSON
150
    list_presets=("${(@f)$(sed '1s/^\xEF\xBB\xBF//' < CMakePresets.json | perl -0777 -MJSON::PP -nE 'do{$k=$_;($e=$k)=~s/:/\\:/g; printf "$_->{name}:$_->{description}\n"} for @{decode_json($_)->{configurePresets}}' 2>/dev/null)}")
151
  fi
152
153
  _describe 'presets' list_presets
154
}
155
156
# --------------
102
# _cmake_targets
157
# _cmake_targets
103
# --------------
158
# --------------
104
(( $+functions[_cmake_targets] )) ||
159
(( $+functions[_cmake_targets] )) ||
Lines 108-114 Link Here
108
  then
163
  then
109
    # `make help` doesn't work for Makefiles in general, but for CMake generated Makefiles it does.
164
    # `make help` doesn't work for Makefiles in general, but for CMake generated Makefiles it does.
110
    i=1
165
    i=1
111
    for target in $(make help | \grep -e "\.\.\." | sed "s/\.\.\. //" | sed "s/ (the default.*//") ; do
166
    for target in $(make -f $1/Makefile help | \grep -e "\.\.\." | sed "s/\.\.\. //" | sed "s/ (the default.*//") ; do
112
      targets[$i]=$target
167
      targets[$i]=$target
113
      (( i = $i + 1 ))
168
      (( i = $i + 1 ))
114
    done
169
    done
Lines 258-296 Link Here
258
}
313
}
259
314
260
local cmake_help_actions;cmake_help_actions=(
315
local cmake_help_actions;cmake_help_actions=(
261
    '(- 1)--help-command[Print help for a single command and exit]:command-name:_cmake_command_names'
262
    '(- 1)--help-command-list[List available listfile commands and exit]'
263
    '(- 1)--help-commands[Print help for all commands and exit]'
264
    '(- 1)--help-compatcommands[Print help for compatibility commands]'
265
    '(- 1)--help-module[Print help for compatibility commands]:module-name:_cmake_module_names'
266
    '(- 1)--help-module-list[Print help for a single module and exit]'
267
    '(- 1)--help-modules[Print help for all modules and exit]'
268
    '(- 1)--help-property[List available properties and exit]:property-name:_cmake_property_names'
269
    '(- 1)--help-property-list[List available properties and exit]'
270
    '(- 1)--help-properties[Print help for all properties and exit]'
271
    '(- 1)--help-variable[Print help for a single variable and exit]:variable-name:_cmake_variable_names'
272
    '(- 1)--help-variable-list[List documented variables and exit]'
273
    '(- 1)--help-variables[Print help for all variables and exit]'
274
    '(- 1)--copyright[Print the CMake copyright and exit]'
275
    '(- 1)'{--help,-help,-usage,-h,-H}'[Print usage information and exit]'
316
    '(- 1)'{--help,-help,-usage,-h,-H}'[Print usage information and exit]'
276
    '(- 1)--help-full[Print full help and exit]'
317
    '(- 1)'{--version,-version}'[Print version number and exit]'
277
    '(- 1)--help-html[Print full help in HTML format]'
318
    '(- 1)--help-full[Print all help manuals and exit]'
278
    '(- 1)--help-man[Print full help as a UNIX man page and exit]'
319
    '(- 1)--help-manual[Print one help manual and exit]:module-name: _cmake_list_names --help-manual-list "manual name"'
279
    '(- 1)'{--version,-version}'[Print full help as a UNIX man page and exit]'
320
    '(- 1)--help-manual-list[List help manuals available and exit]'
321
    '(- 1)--help-command[Print help for one command and exit]:command-name: _cmake_list_names --help-command-list "command name"'
322
    '(- 1)--help-command-list[List commands with help available and exit]'
323
    '(- 1)--help-commands[Print cmake-commands manual and exit]'
324
    '(- 1)--help-module[Print help for one module and exit]:module-name: _cmake_list_names --help-module-list "module name"'
325
    '(- 1)--help-module-list[List modules with help available and exit]'
326
    '(- 1)--help-modules[Print cmake-modules manual and exit]'
327
    '(- 1)--help-policy[Print help for one policy and exit]:policy-name: _cmake_list_names --help-policy-list "policy name"'
328
    '(- 1)--help-policy-list[List policies with help available and exit]'
329
    '(- 1)--help-policies[Print cmake-policies manual and exit]'
330
    '(- 1)--help-property[Print help for one property and exit]:property-name: _cmake_list_names --help-property-list "property name" brakremove'
331
    '(- 1)--help-property-list[List properties with help available and exit]'
332
    '(- 1)--help-properties[Print cmake-properties manual and exit]'
333
    '(- 1)--help-variable[Print help for one variable and exit]:variable-name: _cmake_list_names --help-variable-list "variable name" brakremove'
334
    '(- 1)--help-variable-list[List variables with help available and exit]'
335
    '(- 1)--help-variables[Print cmake-variables manual and exit]'
280
)
336
)
281
_cmake_help() {
337
_cmake_help() {
282
  _arguments -C -s - help "$cmake_help_actions[@]"
338
  _arguments -C -s - help "$cmake_help_actions[@]"
283
}
339
}
284
340
285
# -------------------
286
# _cmake_command_names
287
# -------------------
288
(( $+functions[_cmake_command_names] )) ||
289
_cmake_command_names() {
290
  local command_names; command_names=(${(f)"$($service --help-command-list 2> /dev/null)"})
291
  _values 'command name' ${command_names[@]:1} && return 0
292
}
293
294
# -----------------
341
# -----------------
295
# _cmake_list_names
342
# _cmake_list_names
296
# -----------------
343
# -----------------
Lines 298-332 Link Here
298
_cmake_list_names() {
345
_cmake_list_names() {
299
  local command; command="$@[1]"
346
  local command; command="$@[1]"
300
  local desc; desc="$@[2]"
347
  local desc; desc="$@[2]"
301
  local list_names; list_names=(${(f)"$($service $command 2> /dev/null | sed -e 's/\[/\\\[/' -e 's/\]/\\\]/')"})
348
  local opts; opts=($@[3])
349
  local list_names; list_names=(${(f)"$($service $command 2> /dev/null)"})
350
  # Older CMake (< 3.0) writes out the version
351
  list_names=(${^list_names##cmake version*})
302
352
303
  _values ${desc} ${list_names[@]:1} && return 0
353
  if [[ ${opts[(i)brakremove]} -le ${#opts} ]]; then
304
}
354
    list_names=(${^list_names//\[/\\\[})
355
    list_names=(${^list_names//\]/\\\]})
356
  fi
305
357
306
# ------------------
358
  _values ${desc} ${list_names[@]:-1} && return 0
307
# _cmake_module_names
308
# ------------------
309
(( $+functions[_cmake_module_names] )) ||
310
_cmake_module_names() {
311
  _cmake_list_names '--help-module-list' 'module name' && return 0
312
}
359
}
313
360
314
# --------------------
315
# _cmake_property_names
316
# --------------------
317
(( $+functions[_cmake_property_names] )) ||
318
_cmake_property_names() {
319
  _cmake_list_names '--help-property-list' 'property name' && return 0
320
}
321
322
# ---------------------
323
# _cmake_variable_names
324
# ---------------------
325
(( $+functions[_cmake_variable_names] )) ||
326
_cmake_variable_names() {
327
  _cmake_list_names '--help-variable-list' 'variable name' && return 0
328
}
329
330
# ----------------------
361
# ----------------------
331
# _cmake_define_property
362
# _cmake_define_property
332
# ----------------------
363
# ----------------------
Lines 402-407 Link Here
402
  _describe -t 'common-property-names' 'common property name' properties $@
433
  _describe -t 'common-property-names' 'common property name' properties $@
403
}
434
}
404
435
436
local _cmake_build_types=('Debug' 'Release' 'RelWithDebInfo' 'MinSizeRel')
437
local _cmake_c_standards=(90 99 11)
438
local _cmake_cxx_standards=(98 11 14 17 20)
439
405
# ----------------------------
440
# ----------------------------
406
# _cmake_define_property_values
441
# _cmake_define_property_values
407
# ----------------------------
442
# ----------------------------
Lines 410-496 Link Here
410
  local ret=1
445
  local ret=1
411
  setopt localoptions extendedglob
446
  setopt localoptions extendedglob
412
  case $@[-1] in
447
  case $@[-1] in
413
    (CMAKE_BUILD_TYPE)     _wanted build-types expl 'build type' _cmake_build_types && ret=0;;
448
    (CMAKE_BUILD_TYPE)     _wanted build-types expl 'build type' _values 'build type' ${_cmake_build_types[@]} && ret=0;;
414
    (CMAKE_CXX_STANDARD) _wanted cxx-standards expl 'cxx standard' _cmake_cxx_standars && ret=0;;
449
    (CMAKE_CXX_STANDARD) _wanted cxx-standards expl 'cxx standard' _values 'cxx standard' ${_cmake_cxx_standards[@]} && ret=0;;
415
    (CMAKE_C_STANDARD) _wanted c-standards expl 'c standard' _cmake_c_standars && ret=0;;
450
    (CMAKE_C_STANDARD) _wanted c-standards expl 'c standard' _values 'c standard' ${_cmake_c_standards[@]} && ret=0;;
416
    (CMAKE_TOOLCHAIN_FILE) _wanted toolchain-files expl 'file' _cmake_toolchain_files && ret=0;;
451
    (CMAKE_TOOLCHAIN_FILE) _wanted toolchain-files expl 'file' _cmake_toolchain_files && ret=0;;
417
    (CMAKE_COLOR_MAKEFILE) _wanted booleans expl 'boolean' _cmake_booleans && ret=0;;
452
    (CMAKE_COLOR_MAKEFILE) _wanted booleans expl 'boolean' ${_cmake_booleans[@]} && ret=0;;
418
    (CMAKE_RULE_MESSAGES)  _wanted booleans expl 'boolean' _cmake_booleans && ret=0;;
453
    (CMAKE_RULE_MESSAGES)  _wanted booleans expl 'boolean' ${_cmake_booleans[@]} && ret=0;;
419
    (CMAKE_VERBOSE_MAKEFILE) _wanted booleans expl 'boolean' _cmake_booleans && ret=0;;
454
    (CMAKE_VERBOSE_MAKEFILE) _wanted booleans expl 'boolean' ${_cmake_booleans[@]} && ret=0;;
420
    (CMAKE_UNITY_BUILD) _wanted booleans expl 'boolean' _cmake_booleans && ret=0;;
455
    (CMAKE_UNITY_BUILD) _wanted booleans expl 'boolean' ${_cmake_booleans[@]} && ret=0;;
421
    (CMAKE_INSTALL_PREFIX) _files -/ && ret=0;;
456
    (CMAKE_INSTALL_PREFIX) _files -/ && ret=0;;
422
    (CMAKE_EXPORT_COMPILE_COMMANDS) _wanted booleans expl 'boolean' _cmake_booleans && ret=0;;
457
    (CMAKE_EXPORT_COMPILE_COMMANDS) _wanted booleans expl 'boolean' ${_cmake_booleans[@]} && ret=0;;
423
    (CMAKE_*_COMPILER)     _wanted compilers expl 'compiler' _cmake_compilers && ret=0;;
458
    (CMAKE_*_COMPILER)     _wanted compilers expl 'compiler' _cmake_compilers && ret=0;;
424
    (CMAKE_*_COMPILER_LAUNCHER) _wanted compilers expl 'compiler launcher' _cmake_launchers && ret=0;;
459
    (CMAKE_*_COMPILER_LAUNCHER) _wanted compilers expl 'compiler launcher' _cmake_launchers && ret=0;;
425
    (CMAKE_*_FLAGS(|_?*))  _message -e compiler-flags 'compiler flags' && _dispatch $service -value-,CPPFLAGS,-default- && ret=0;;
460
    (CMAKE_*_FLAGS(|_?*))  _message -e compiler-flags 'compiler flags' && _dispatch $service -value-,CPPFLAGS,-default- && ret=0;;
426
    (CMAKE_*_STANDARD_REQUIRED) _wanted booleans expl 'boolean' _cmake_booleans && ret=0;;
461
    (CMAKE_*_STANDARD_REQUIRED) _wanted booleans expl 'boolean' ${_cmake_booleans[@]} && ret=0;;
427
    (CMAKE_*_EXTENSIONS) _wanted booleans expl 'boolean' _cmake_booleans && ret=0;;
462
    (CMAKE_*_EXTENSIONS) _wanted booleans expl 'boolean' ${_cmake_booleans[@]} && ret=0;;
428
    (*)                    _files && ret=0;;
463
    (*)                    _files && ret=0;;
429
  esac
464
  esac
430
465
431
  return ret
466
  return ret
432
}
467
}
433
468
434
# ------------------
469
local _cmake_generator_list
435
# _cmake_build_types
470
_cmake_generator_list=(
436
# ------------------
471
  'Green Hills MULTI'
437
(( $+functions[_cmake_build_types] )) ||
472
  'Unix Makefiles'
438
_cmake_build_types() {
473
  'Ninja'
439
  local build_types; build_types=(
474
  'Ninja Multi-Config'
440
    'Debug'
475
  'CodeBlocks - Ninja'
441
    'Release'
476
  'CodeBlocks - Unix Makefiles'
442
    'RelWithDebInfo'
477
  'CodeLite - Ninja'
443
    'MinSizeRel'
478
  'CodeLite - Unix Makefiles'
444
  )
479
  'Eclipse CDT4 - Ninja'
445
  _values 'build type' ${build_types[@]}
480
  'Eclipse CDT4 - Unix Makefiles'
446
}
481
  'Kate - Ninja'
482
  'Kate - Unix Makefiless'
483
  'Sublime Text 2 - Ninja'
484
  'Sublime Text 2 - Unix Makefiles'
485
)
447
486
448
# -------------------
449
# _cmake_c_standars
450
# -------------------
451
(( $+functions[_cmake_c_standars] )) ||
452
_cmake_c_standars() {
453
  local c_standards; c_standards=(
454
  '90'
455
  '99'
456
  '11'
457
  )
458
  _values 'c standard' ${c_standards[@]}
459
}
460
461
# -------------------
462
# _cmake_cxx_standars
463
# -------------------
464
(( $+functions[_cmake_cxx_standars] )) ||
465
_cmake_cxx_standars() {
466
  local cxx_standards; cxx_standards=(
467
  '98'
468
  '11'
469
  '14'
470
  '17'
471
  )
472
  _values 'cxx standard' ${cxx_standards[@]}
473
}
474
475
# -----------------
487
# -----------------
476
# _cmake_generators
488
# _cmake_generators
477
# -----------------
489
# -----------------
478
(( $+functions[_cmake_generators] )) ||
490
(( $+functions[_cmake_generators] )) ||
479
_cmake_generators() {
491
_cmake_generators() {
480
  local generators; generators=(
492
  _describe -t generators 'generator' _cmake_generator_list
481
    'Unix Makefiles'
482
    'Ninja'
483
    'CodeBlocks - Ninja'
484
    'CodeBlocks - Unix Makefiles'
485
    'Eclipse CDT4 - Ninja'
486
    'Eclipse CDT4 - Unix Makefiles'
487
    'KDevelop3'
488
    'KDevelop3 - Unix Makefiles'
489
    'Sublime Text 2 - Ninja'
490
    'Sublime Text 2 - Unix Makefiles'
491
  )
492
493
  _describe -t generators 'generator' generators
494
}
493
}
495
494
496
# ----------------------
495
# ----------------------
Lines 501-518 Link Here
501
  _files -g '*\.cmake*'
500
  _files -g '*\.cmake*'
502
}
501
}
503
502
504
# ---------------
505
# _cmake_booleans
506
# ---------------
507
(( $+functions[_cmake_booleans] )) ||
508
_cmake_booleans() {
509
  local booleans; booleans=(
510
    'YES'
511
    'NO'
512
  )
513
  _describe -t booleans 'boolean' booleans
514
}
515
503
504
local _cmake_booleans=(_describe -t booleans 'boolean' 'YES' 'NO')
505
516
# ---------------
506
# ---------------
517
# _cmake_compilers
507
# _cmake_compilers
518
#
508
#
Lines 534-546 Link Here
534
  _command_names -e
524
  _command_names -e
535
}
525
}
536
526
537
local cmake_command_actions;cmake_command_actions=(
527
local _cmake_commands=(
538
    '-E[CMake command mode]:*:command'
528
  'capabilities:Report capabilities built into cmake in JSON format' \
529
  'cat:concat the files and print them to the standard output' \
530
  'chdir:run command in a given directory' \
531
  'compare_files:check if file1 is same as file2' \
532
  'copy:copy files to destination (either file or directory)' \
533
  'copy_directory:copy content of <dir>... directories to destination directory' \
534
  'copy_if_different:copy files if it has changed' \
535
  'echo:displays arguments as text' \
536
  'echo_append:displays arguments as text but no new line' \
537
  'env:run command in a modified environment' \
538
  'environment:display the current environment' \
539
  'make_directory:create parent and <dir> directories' \
540
  'md5sum:create MD5 checksum of files' \
541
  'sha1sum:create SHA1 checksum of files' \
542
  'sha224sum:create SHA224 checksum of files' \
543
  'sha256sum:create SHA256 checksum of files' \
544
  'sha384sum:create SHA384 checksum of files' \
545
  'sha512sum:create SHA512 checksum of files' \
546
  'remove:remove the file(s), use -f to force it' \
547
  'remove_directory:remove directories and their contents' \
548
  'rename:rename a file or directory (on one volume)' \
549
  'rm:remove files or directories' \
550
  'server:start cmake in server mode' \
551
  'sleep:sleep for given number of seconds' \
552
  'tar:create or extract a tar or zip archive' \
553
  'time:run command and display elapsed time' \
554
  'touch:touch a <file>' \
555
  'touch_nocreate:touch a <file> but do not create it' \
556
  'create_symlink:create a symbolic link new -> old' \
557
  'create_hardlink:create a hard link new -> old' \
558
  'true:do nothing with an exit code of 0' \
559
  'false:do nothing with an exit code of 1'
539
)
560
)
540
_cmake_command() {
561
_cmake_command() {
541
  _arguments -C -s - command "$cmake_command_actions[@]"
562
  _arguments -C \
542
}
563
    '-E[CMake command mode]:command:(("${_cmake_commands[@]}"))'
543
564
565
}
544
local cmake_suggest_build;cmake_suggest_build=(
566
local cmake_suggest_build;cmake_suggest_build=(
545
    '--build[build]:build dir:_cmake_suggest_builddirs'
567
    '--build[build]:build dir:_cmake_suggest_builddirs'
546
)
568
)
Lines 556-562 Link Here
556
    - help \
578
    - help \
557
      "$cmake_help_actions[@]" \
579
      "$cmake_help_actions[@]" \
558
    - command \
580
    - command \
559
      "$cmake_command_actions[@]" \
581
      '-E[CMake command mode]:command:( )' \
560
    - build_opts \
582
    - build_opts \
561
      "$cmake_build_options[@]" \
583
      "$cmake_build_options[@]" \
562
    - build_cmds \
584
    - build_cmds \
Lines 565-575 Link Here
565
      "$cmake_suggest_install[@]" && return 0
587
      "$cmake_suggest_install[@]" && return 0
566
elif [[ $words[2] = --help* ]] ; then
588
elif [[ $words[2] = --help* ]] ; then
567
  _cmake_help
589
  _cmake_help
568
#elif [[ $words[2] != -E ]] ; then
569
elif [[ $words[2] == --build ]] ; then
590
elif [[ $words[2] == --build ]] ; then
570
  _cmake_on_build
591
  _cmake_on_build
571
elif [[ $words[2] == --install ]] ; then
592
elif [[ $words[2] == --install ]] ; then
572
  _cmake_on_install
593
  _cmake_on_install
573
else
594
elif [[ $words[2] == -E ]]; then
574
  _cmake_command
595
  _cmake_command
575
fi
596
else
597
  _arguments "$cmake_build_options[@]"
598
fi
(-)zsh-completions-0.32.0/src/_conan (-1 / +1 lines)
Lines 483-489 Link Here
483
  _files -g '*.py'
483
  _files -g '*.py'
484
}
484
}
485
485
486
(( $+functions[_conan_directory_or_package_references] )) ||
486
(( $+functions[_conan_conanfiles_or_package_references] )) ||
487
_conan_conanfiles_or_package_references() {
487
_conan_conanfiles_or_package_references() {
488
  _alternative \
488
  _alternative \
489
    'conanfile: :_conan_conanfiles' \
489
    'conanfile: :_conan_conanfiles' \
(-)zsh-completions-0.32.0/src/_drush (-2 / +2 lines)
Lines 79-87 Link Here
79
      '(variable-get)'{variable-get,vget}'[Get a list of some or all site variables and values.]' \
79
      '(variable-get)'{variable-get,vget}'[Get a list of some or all site variables and values.]' \
80
      '(variable-set)'{variable-set,vset}'[Set a variable.]' \
80
      '(variable-set)'{variable-set,vset}'[Set a variable.]' \
81
      '(pm-list)'{pm-list,pml}'[Show a list of available extensions (modules and themes).]' \
81
      '(pm-list)'{pm-list,pml}'[Show a list of available extensions (modules and themes).]' \
82
      '(pm-disable)'{pm-disable,dis}'[Disable one or more extensions (modules or themes). Disable dependant extensions as well.]' \
82
      '(pm-disable)'{pm-disable,dis}'[Disable one or more extensions (modules or themes). Disable dependent extensions as well.]' \
83
      '(pm-download)'{pm-download,dl}'[Download projects from drupal.org or other sources.]' \
83
      '(pm-download)'{pm-download,dl}'[Download projects from drupal.org or other sources.]' \
84
      '(pm-enable)'{pm-enable,en}'[Enable one or more extensions (modules or themes). Enable dependant extensions as well.]' \
84
      '(pm-enable)'{pm-enable,en}'[Enable one or more extensions (modules or themes). Enable dependent extensions as well.]' \
85
      'pm-uninstall[Uninstall one or more modules.]' \
85
      'pm-uninstall[Uninstall one or more modules.]' \
86
      'pm-update[Update Drupal core and contrib projects and apply any pending database updates (Same as pm-updatecode + updatedb).]' \
86
      'pm-update[Update Drupal core and contrib projects and apply any pending database updates (Same as pm-updatecode + updatedb).]' \
87
      '(sql-cli)'{sql-cli,sqlc}'[Open a SQL command-line interface using Drupals credentials.]' \
87
      '(sql-cli)'{sql-cli,sqlc}'[Open a SQL command-line interface using Drupals credentials.]' \
(-)zsh-completions-0.32.0/src/_flutter (-168 / +387 lines)
Lines 32-37 Link Here
32
# -------
32
# -------
33
#
33
#
34
#  * Nikolai Simonov (https://github.com/NiKoTron) <nickolay.simonov@gmail.com>
34
#  * Nikolai Simonov (https://github.com/NiKoTron) <nickolay.simonov@gmail.com>
35
#  * Shohei Yoshida (https://github.com/syohex) <syohex@gmail.com>
35
#
36
#
36
# ------------------------------------------------------------------------------
37
# ------------------------------------------------------------------------------
37
_flutter() {
38
_flutter() {
Lines 46-64 Link Here
46
_arguments -C -A "-*" \
47
_arguments -C -A "-*" \
47
'(-h --help)'{-h,--help}'[Print this usage information.]' \
48
'(-h --help)'{-h,--help}'[Print this usage information.]' \
48
'(-v --verbose)'{-v,--verbose}'[Noisy logging, including all shell commands executed.]' \
49
'(-v --verbose)'{-v,--verbose}'[Noisy logging, including all shell commands executed.]' \
50
'--prefixed-errors[Causes lines sent to stderr to be prefixed with "ERROR:"]' \
49
'--quiet[Reduce the amount of output from some commands.]' \
51
'--quiet[Reduce the amount of output from some commands.]' \
52
'(--no-wrap --wrap)--wrap[Whether to use output word wrapping]' \
53
'(--wrap --no-wrap)--no-wrap[Whether to use output word wrapping]' \
54
'--wrap-column=[Set the output wrap column]:number:' \
50
'(-d --device-id)'{-d,--device-id}'[Target device id or name (prefixes allowed).]' \
55
'(-d --device-id)'{-d,--device-id}'[Target device id or name (prefixes allowed).]' \
51
'--version[Reports the version of this tool.]' \
56
'--version[Reports the version of this tool.]' \
52
'--color[Whether to use terminal colors.]' \
57
'--machine[When used with the "--version" flag, outputs the information using JSON]' \
53
'--no-color[Whether to use terminal colors.]' \
58
'(--no-color --color)--color[Whether to use terminal colors.]' \
59
'(--color --no-color)--no-color[Whether to use terminal colors.]' \
60
'(--no-version-check --version-check)--version-check[Allow Flutter to check for updates when this command runs]' \
61
'(--version-check --no-version-check)--no-version-check[Not allow Flutter to check for updates when this command runs]' \
54
'--suppress-analytics[Suppress analytics reporting when this command runs.]' \
62
'--suppress-analytics[Suppress analytics reporting when this command runs.]' \
55
'--bug-report[Captures a bug report file to submit to the Flutter team (contains local paths, device identifiers, and log snippets).]' \
56
'--packages[Path to your ".packages" file. (required, since the current directory does not contain a ".packages" file)]' \
63
'--packages[Path to your ".packages" file. (required, since the current directory does not contain a ".packages" file)]' \
57
'--flutter-root[The root directory of the Flutter repository (uses $FLUTTER_ROOT if set).]' \
64
'--local-engine-src-path=[Path to your engine src directory]: :_path_files -/' \
65
'--local-engine=[Name of a build output within the engine out directory]' \
66
'--show-test-device=[List the special "flutter-tester" device in device listings]' \
67
'--show-web-server-device=[List the special "web-server" device in device listings]' \
58
'1: :_root_commands' \
68
'1: :_root_commands' \
59
'*::arg:->args' \
69
'*::arg:->args' \
60
&& ret=0
70
&& ret=0
61
  
71
62
  case "$state" in
72
  case "$state" in
63
    (args)
73
    (args)
64
      case $words[1] in
74
      case $words[1] in
Lines 70-91 Link Here
70
        (analyze)
80
        (analyze)
71
            _arguments -C \
81
            _arguments -C \
72
            '(-h --help)'{-h,--help}'[Print this usage information.]' \
82
            '(-h --help)'{-h,--help}'[Print this usage information.]' \
73
            '--flutter-repo[Include all the examples and tests from the Flutter repository.]' \
74
            '--no-flutter-repo[Include all the examples and tests from the Flutter repository.]' \
75
            '--current-package[Include the lib/main.dart file from the current directory, if any. (defaults to on)]' \
83
            '--current-package[Include the lib/main.dart file from the current directory, if any. (defaults to on)]' \
76
            '--no-current-package[Include the lib/main.dart file from the current directory, if any. (defaults to on)]' \
84
            '--no-current-package[Include the lib/main.dart file from the current directory, if any. (defaults to on)]' \
77
            '--watch[Run analysis continuously, watching the filesystem for changes.]' \
85
            '--watch[Run analysis continuously, watching the filesystem for changes.]' \
78
            '--preview-dart-2[Preview Dart 2.0 functionality. (defaults to on)]' \
86
            '--write=[Also output the results to a file.]: :_files ' \
79
            '--no-preview-dart-2[Preview Dart 2.0 functionality. (defaults to on)]' \
80
            '--write=[Also output the results to a file. This is useful with --watch if you want a file to always contain the latest results.]: :_files -/' \
81
            '--pub[Whether to run "flutter packages get" before executing this command. (defaults to on)]' \
87
            '--pub[Whether to run "flutter packages get" before executing this command. (defaults to on)]' \
82
            '--no-pub[Whether to run "flutter packages get" before executing this command. (defaults to on)]' \
88
            '--no-pub[Whether to run "flutter packages get" before executing this command. (defaults to on)]' \
83
            '--congratulate[When analyzing the flutter repository, show output even when there are no errors, warnings, hints, or lints. (defaults to on)]' \
89
            '--congratulate[When analyzing, show output even when there are no errors/warnings/hints/lints (defaults to on)]' \
84
            '--no-congratulate[When analyzing the flutter repository, show output even when there are no errors, warnings, hints, or lints. (defaults to on)]' \
90
            '--no-congratulate[When analyzing, show output even when there are no errors/warnings/hints/lints(defaults to on)]' \
85
            '--preamble[When analyzing the flutter repository, display the number of files that will be analyzed. (defaults to on)]' \
91
            '--preamble[When analyzing, display the number of files that will be analyzed. (defaults to on)]' \
86
            '--no-preamble[When analyzing the flutter repository, display the number of files that will be analyzed. (defaults to on)]' \
92
            '--no-preamble[When analyzing, display the number of files that will be analyzed. (defaults to on)]' \
93
            '(--no-fatal-infos --fatal-infos)--fatal-infos[Treat info level issues as fatal]' \
94
            '(--no-fatal-infos --fatal-infos)--no-fatal-infos[Not treat info level issues as fatal]' \
95
            '(--no-fatal-warnings --fatal-warnings)--fatal-warnings[Treat warning level issues as fatal]' \
96
            '(--no-fatal-warnings --fatal-warnings)--no-fatal-warnings[Not treat warning level issues as fatal]' \
87
          && ret=0
97
          && ret=0
88
        ;;
98
        ;;
99
        (assemble)
100
            _arguments -C \
101
            '(-h --help)'{-h,--help}'[Print this usage information.]' \
102
            {-d,--define=}'[Allows passing configuration to a target]: :' \
103
            '--performance-measurement-file[Output individual target performance to a JSON file]' \
104
            {-i,--input=}'[Allows passing additional input]: :' \
105
            '--depfile=[A file path where a depfile will be written]: :_path_files' \
106
            '--build-inputs=[A file path where a newline-separated file containing all inputs used will be written after a build]: :_path_files' \
107
            '(-o --output)'{-o,--output=}'[A directory where output files will be written]: :_path_files -/' \
108
            '*--dart-define=[Additional key-value pairs that will be available as constants]: :' \
109
            '--resouce-pool-size=[The maximum number of concurrent tasks the build system will run]:number:' \
110
          && ret=0
111
        ;;
112
        (attach)
113
            _arguments -C \
114
            '(-h --help)'{-h,--help}'[Print this usage information.]' \
115
            '--debug[Build a debug version of your app (default mode).]' \
116
            '--profile[Build a version of your app specialized for performance profiling.]' \
117
            '(-t --target)'{-t,--target=}'[The main entry-point file of the application, as run on the device.(defaults to "lib/main.dart")]::_files -g "*.dart"' \
118
            '--device-vmservice-port=[Look for vmservice connections only from the specified port]:port:' \
119
            '--host-vmservice-port=[When a device-side vmservice port is forwarded to a host-side port]:port:' \
120
            '*--dart-define=[Additional key-value pairs that will be available as constants]: :' \
121
            '--device-user=[Identifier number for a user or work profile on Android only]:id:' \
122
            '--null-assertions[Perform additional null assertions on the boundaries of migrated and un-migrated code]' \
123
            '--no-null-assertions[Not perform additional null assertions on the boundaries of migrated and un-migrated code]' \
124
            '--debug-url=[The URL at which the observatory is listening]:url:' \
125
            '--app-id=[The package name (Android) or bundle identifier (iOS) for the app]:app_id:' \
126
            '--pid-file=[Specify a file to write the process id to]::_files' \
127
            '--track-widget-creation[Track widget creation locations. (defaults to on)]' \
128
            '--no-track-widget-creation[Not rack widget creation locations. (defaults to on)]' \
129
            '--dds-port=[When this value is provided, the Dart Development Service (DDS) will be bound to the provided port]:port:' \
130
            '--device-timeout=[Time in seconds to wait for devices to attach]:seconds:' \
131
          && ret=0
132
        ;;
133
        (bash-completion)
134
            _arguments -C \
135
            '(-h --help)'{-h,--help}'[Print this usage information.]' \
136
            '(--no-overwrite --overwrite)--overwrite[Overwritten completion setup if it already exists]' \
137
            '(--overwrite --no-overwrite)--no-overwrite[Not overwritten completion setup if it already exists]' \
138
          && ret=0
139
        ;;
89
        (build)
140
        (build)
90
            _arguments -C \
141
            _arguments -C \
91
            '1: :_build_entities' \
142
            '1: :_build_entities' \
Lines 108-144 Link Here
108
            '--analytics[Enable or disable reporting anonymously tool usage statistics and crash reports.]' \
159
            '--analytics[Enable or disable reporting anonymously tool usage statistics and crash reports.]' \
109
            '--no-analytics[Enable or disable reporting anonymously tool usage statistics and crash reports.]' \
160
            '--no-analytics[Enable or disable reporting anonymously tool usage statistics and crash reports.]' \
110
            '--clear-ios-signing-cert[Clear the saved development certificate choice used to sign apps for iOS device deployment.]' \
161
            '--clear-ios-signing-cert[Clear the saved development certificate choice used to sign apps for iOS device deployment.]' \
111
            '--gradle-dir[The gradle install directory.]' \
162
            '--android-sdk=[The Android SDK directory.]: :_path_files -/' \
112
            '--android-sdk[The Android SDK directory.]' \
163
            '--android-studio-dir=[The Android Studio install directory.]: :_path_files -/' \
113
            '--android-studio-dir[The Android Studio install directory.]' \
164
            '--build-dir=[The relative path to override a projects build directory]: :_path_files -/' \
165
            '(--no-enable-web --enable-web)--enable-web[Enable Flutter for web]' \
166
            '(--no-enable-web --enable-web)--no-enable-web[Disable Flutter for web]' \
167
            '(--no-enable-linux-desktop --enable-linux-desktop)--enable-linux-desktop[Enable support for desktop on Linux]' \
168
            '(--no-enable-linux-desktop --enable-linux-desktop)--no-enable-linux-desktop[Disable support for desktop on Linux]' \
169
            '(--no-enable-macos-desktop --enable-macos-desktop)--enable-macos-desktop[Enable support for desktop on macOS]' \
170
            '(--no-enable-macos-desktop --enable-macos-desktop)--no-enable-macos-desktop[Disable support for desktop on macOS]' \
171
            '(--no-enable-windows-desktop --enable-windows-desktop)--enable-windows-desktop[Enable support for desktop on Windows]' \
172
            '(--no-enable-windows-desktop --enable-windows-desktop)--no-enable-windows-desktop[Disable support for desktop on Windows]' \
173
            '(--no-enable-windows-uwp-desktop --enable-windows-uwp-desktop)--enable-windows-uwp-desktop[Enable support for desktop on Windows UWP]' \
174
            '(--no-enable-windows-uwp-desktop --enable-windows-uwp-desktop)--no-enable-windows-uwp-desktop[Disable support for desktop on Windows UWP]' \
175
            '(--no-single-widget-reload-optimization --single-widget-reload-optimization)--single-widget-reload-optimization[Enable Hot reload optimization for a single widget]' \
176
            '(--no-single-widget-reload-optimization --single-widget-reload-optimization)--no-single-widget-reload-optimization[Disable Hot reload optimization for a single widget]' \
177
            '(--no-enable-android --enable-android)--enable-android[Enable Flutter for Android]' \
178
            '(--no-enable-android --enable-android)--no-enable-android[Disable Flutter for Android]' \
179
            '(--no-enable-ios --enable-ios)--enable-ios[Enable Flutter for iOS]' \
180
            '(--no-enable-ios --enable-ios)--no-enable-ios[Disable Flutter for iOS]' \
181
            '(--no-enable-fuchsia --enable-fuchsia)--enable-fuchsia[Enable Flutter for Fuchsia]' \
182
            '(--no-enable-fuchsia --enable-fuchsia)--no-enable-fuchsia[Disable Flutter for Fuchsia]' \
183
            '(--no-enable-custom-devices --enable-custom-devices)--enable-custom-devices[Enable Early support for custom device types]' \
184
            '(--no-enable-custom-devices --enable-custom-devices)--no-custom-devices[Disable Early support for custom device types]' \
185
            '--clear-features[Remove all configured features and restore them to the default values]' \
114
          && ret=0
186
          && ret=0
115
        ;;
187
        ;;
116
        
188
117
        (create)
189
        (create)
118
            _arguments -C \
190
            _arguments -C \
119
            '(-h --help)'{-h,--help}'[Print this usage information.]' \
191
            '(-h --help)'{-h,--help}'[Print this usage information.]' \
120
            '--pub[Whether to run "flutter packages get" after the project has been created. (defaults to on)]' \
192
            '--pub[Whether to run "flutter packages get" after the project has been created. (defaults to on)]' \
121
            '--no-pub[Whether to run "flutter packages get" after the project has been created. (defaults to on)]' \
193
            '--no-pub[Whether to run "flutter packages get" after the project has been created. (defaults to on)]' \
122
            '--offline[When "flutter packages get" is run by the create command, this indicates whether to run it in offline mode or not. In offline mode, it will need to have all dependencies already available in the pub cache to succeed.]' \
194
            '--offline[Offline mode when "flutter packages get" is run]' \
123
            '--no-offline[When "flutter packages get" is run by the create command, this indicates whether to run it in offline mode or not. In offline mode, it will need to have all dependencies already available in the pub cache to succeed.]' \
195
            '--no-offline[Offline mode when "flutter packages get" is run]' \
124
            "--with-driver-test[Also add a fl:_root_commandsutter_driver dependency and generate a sample 'flutter drive' test.]" \
196
            '--overwrite[When performing operations, overwrite existing files.]' \
125
            "--no-with-driver-test[Also add a flutter_driver dependency and generate a sample 'flutter drive' test.]" \
197
            '--no-overwrite[When performing operations, not overwrite existing files.]' \
126
            '(-t= --template=)'{-t=,--template=}'[Specify the type of project to create.]: :_project_templates' \
198
            "--description=[The description to use for your new Flutter project. (defaults to 'A new Flutter project.')]::" \
127
            "--description[The description to use for your new Flutter project. This string ends up in the pubspec.yaml file. (defaults to 'A new Flutter project.')]" \
199
            "--org=[The organization responsible for new Flutter project, in reverse domain name notation.(defaults to 'com.example')]::" \
128
            "--org[The organization responsible for your new Flutter project, in reverse domain name notation. This string is used in Java package names and as prefix in the iOS bundle identifier. (defaults to 'com.example')]" \
200
            '--project-name=[The project name for this new Flutter project]:name:' \
129
            '(-i= --ios-language)'{-i=,--ios-language}'[iOS project language]: :_ios_languages' \
201
            '(-i --ios-language)'{-i,--ios-language=}'[iOS project language]: :_ios_languages' \
130
            '(-a= --android-language)'{-a=,--android-language}'[Android project language]: :_droid_languages' \
202
            '(-a --android-language)'{-a,--android-language=}'[Android project language]: :_droid_languages' \
203
            '--platforms[The platforms supported by this project]' \
204
            '(-t --template=)'{-t,--template=}'[Specify the type of project to create.]: :_project_templates' \
205
            '(-s --sample=)'{-s,--sample=}'[Specifies the Flutter code sample to use as the "main.dart" for an application]:id:' \
206
            '--list-samples=[Specifies a JSON output file for a listing of Flutter code samples that can be created with "--sample"]::_path_files' \
131
          && ret=0
207
          && ret=0
132
        ;;
208
        ;;
133
        
209
        (custom-devices)
210
            _arguments -C \
211
            '1: :_custom_devices_subcommands' \
212
            '(-h --help)'{-h,--help}'[Print this usage information.]' \
213
          && ret=0
214
        ;;
134
        (daemon)
215
        (daemon)
135
            _arguments -C \
216
            _arguments -C \
136
            '(-h --help)'{-h,--help}'[Print this usage information.]' \
217
            '(-h --help)'{-h,--help}'[Print this usage information.]' \
218
            '--listen-on-tcp-port=[If specified, the daemon will be listening for commands on the specified port instead of stdio]:port:' \
137
          && ret=0
219
          && ret=0
138
        ;;
220
        ;;
221
        (debug-adapter)
222
            _arguments -C \
223
            '(-h --help)'{-h,--help}'[Print this usage information.]' \
224
            '--dds-port=[When this value is provided, the Dart Development Service (DDS) will be bound to the provided port]:port:' \
225
            '(--no-test --test)--test[use the "flutter test" debug adapter to run tests]' \
226
            '(--no-test --test)--no-test[not use the "flutter test" debug adapter to run tests]' \
227
          && ret=0
228
        ;;
139
        (devices)
229
        (devices)
140
            _arguments -C \
230
            _arguments -C \
141
            '(-h --help)'{-h,--help}'[Print this usage information.]' \
231
            '(-h --help)'{-h,--help}'[Print this usage information.]' \
232
            '--machine[Output device information in machine readable structured JSON format.]' \
233
            "--device-timeout=[Time in seconds to wait for devices to attach]:seconds:" \
142
          && ret=0
234
          && ret=0
143
        ;;
235
        ;;
144
        (doctor)
236
        (doctor)
Lines 147-260 Link Here
147
            "--android-licenses[Run the Android SDK manager tool to accept the SDK's licenses.]" \
239
            "--android-licenses[Run the Android SDK manager tool to accept the SDK's licenses.]" \
148
          && ret=0
240
          && ret=0
149
        ;;
241
        ;;
242
        (downgrade)
243
            _arguments -C \
244
            '(-h --help)'{-h,--help}'[Print this usage information.]' \
245
          && ret=0
246
        ;;
150
        (drive)
247
        (drive)
151
            _arguments -C \
248
            _arguments -C \
152
            '(-h --help)'{-h,--help}'[Print this usage information.]' \
249
            '(-h --help)'{-h,--help}'[Print this usage information.]' \
153
            '--debug[Build a debug version of your app (default mode).]' \
250
            '--debug[Build a debug version of your app (default mode).]' \
154
            '--profile[Build a version of your app specialized for performance profiling.]' \
251
            '--profile[Build a version of your app specialized for performance profiling.]' \
155
            '--release[Build a release version of your app.]' \
252
            '--release[Build a release version of your app.]' \
156
            '--flavor[Build a custom app flavor as defined by platform-specific build setup. Supports the use of product flavors in Android Gradle scripts. Supports the use of custom Xcode schemes.]' \
253
            '*--dart-define=[Additional key-value pairs that will be available as constants]: :' \
254
            '--flavor[Build a custom app flavor as defined by platform-specific build setup.]' \
255
            '--web-renderer[The renderer implementation to use when building for the web]: :(auto canvaskit html)' \
157
            '--trace-startup[Start tracing during startup.]' \
256
            '--trace-startup[Start tracing during startup.]' \
257
            '(--cache-startup-profile --no-cache-startup-profile)--cache-startup-profile[Caches the CPU profile collected before the first frame for startup analysis.]' \
258
            '(--cache-startup-profile --no-cache-startup-profile)--no-cache-startup-profile[Not caches the CPU profile collected before the first frame for startup analysis.]' \
259
            '--verbose-system-logs[Include verbose logging from the Flutter engine]' \
260
            '--cache-sksl[Cache the shader in the SkSL format instead of in binary or GLSL formats]' \
261
            '--dump-skp-on-shader-compilation[Cache the shader in the SkSL format instead of in binary or GLSL formats.]' \
262
            '--purge-persistent-cache[Removes all existing persistent caches]' \
158
            '--route[Which route to load when running the app.]' \
263
            '--route[Which route to load when running the app.]' \
159
            '--target-platform[Specify the target platform when building the app for an Android device. Ignored on iOS.]: :_target_platforms' \
264
            '--use-application-binary=[Specify a pre-built application binary to use when running]::_files -g "*.apk"' \
160
            '(-t= --target=)'{-t=,-target=}'[The main entry-point file of the application, as run on the device. If the --target option is omitted, but a file name is provided on the command line, then that is used instead. (defaults to "lib/main.dart")]: :_files -g "*.dart"' \
265
            '(--no-start-paused --start-paused)--start-paused[Start in a paused mode and wait for a debugger to connect.]' \
161
            '--observatory-port[Listen to the given port for an observatory debugger connection. Specifying port 0 will find a random free port. Defaults to the first available port after 8100.]' \
266
            '(--no-start-paused --start-paused)--no-start-paused[Not tart in a paused mode and wait for a debugger to connect.]' \
267
            '--endless-trace-buffer[Enable tracing to an infinite buffer, instead of a ring buffer]' \
268
            '--trace-systrace[Enable tracing to the system tracer]' \
269
            '--trace-skia[Enable tracing of Skia code]' \
270
            *{-a,--dart-entrypoint-args=}'[Pass a list of arguments to the Dart entrypoint at application startup]: :' \
271
            '--web-launch-url=[The URL to provide to the browser]: :' \
272
            '(-t --target=)'{-t,--target=}'[The main entry-point file of the application, as run on the device.(defaults to "lib/main.dart")]: :_files -g "*.dart"' \
273
            '--device-vmservice-port=[Look for vmservice connections only from the specified port]:port:' \
274
            '--host-vmservice-port=[When a device-side vmservice port is forwarded to a host-side port]:port:' \
162
            '--pub[Whether to run "flutter packages get" before executing this command. (defaults to on)]' \
275
            '--pub[Whether to run "flutter packages get" before executing this command. (defaults to on)]' \
163
            '--no-pub[Whether to run "flutter packages get" before executing this command. (defaults to on)]' \
276
            '--no-pub[Whether to run "flutter packages get" before executing this command. (defaults to on)]' \
164
            '--no-keep-app-running[Will keep the Flutter application running when done testing. By default, "flutter drive" stops the application after tests are finished, and --keep-app-running overrides this. On the other hand, if --use-existing-app is specified, then "flutter drive" instead defaults to leaving the application running, and --no-keep-app-running overrides it.]' \
277
            '--track-widget-creation[Track widget creation locations. (defaults to on)]' \
165
            '--keep-app-running[Will keep the Flutter application running when done testing. By default, "flutter drive" stops the application after tests are finished, and --keep-app-running overrides this. On the other hand, if --use-existing-app is specified, then "flutter drive" instead defaults to leaving the application running, and --no-keep-app-running overrides it.]' \
278
            '--no-track-widget-creation[Not rack widget creation locations. (defaults to on)]' \
166
            '--use-existing-app=[Connect to an already running instance via the given observatory URL. If this option is given, the application will not be automatically started, and it will only be stopped if --no-keep-app-running is explicitly set.]' \
279
            '--null-assertions[Perform additional null assertions on the boundaries of migrated and un-migrated code]' \
167
            '--driver=[The test file to run on the host (as opposed to the target file to run on the device). By default, this file has the same base name as the target file, but in the "test_driver/" directory instead, and with "_test" inserted just before the extension, so e.g. if the target is "lib/main.dart", the driver will be "test_driver/main_test.dart".]: :_files' \
280
            '--no-null-assertions[Not perform additional null assertions on the boundaries of migrated and un-migrated code]' \
168
            '--preview-dart-2[Preview Dart 2.0 functionality. (defaults to on)]' \
281
            '--device-user=[Identifier number for a user or work profile on Android only]:id:' \
169
            '--no-preview-dart-2[Preview Dart 2.0 functionality. (defaults to on)]' \
282
            '--device-timeout=[Time in seconds to wait for devices to attach]:seconds:' \
283
            '--dds-port=[the Dart Development Service (DDS) will be bound to the provided port]:port:' \
284
            *{-P,--android-project-arg=}'[Additional arguments specified as key=value that are passed directly to the gradle project]: :' \
285
            '--multidex[indicates that the app should be built with multidex support(defaults to on)]' \
286
            '--no-multidex[indicates that the app should not be built with multidex support(defaults to on)]' \
287
            '--no-keep-app-running[Will not keep the Flutter application running when done testing.]' \
288
            '--keep-app-running[Will keep the Flutter application running when done testing.]' \
289
            '--use-existing-app=[Connect to an already running instance via the given observatory URL.]' \
290
            '--driver=[The test file to run on the host]: :_files' \
291
            '--build[If necessary, build the app before running. (defaults to on)]' \
292
            '--no-build[If necessary, not build the app before running]' \
293
            '--screenshot=[Directory location to write screenshots on test failure]::_path_files -/' \
294
            '--driver-port=[The port where Webdriver server is launched at(default to "4444")]:port:' \
295
            '(--no-headless --headless)--headless[Launch driver browser in headless mode(defaults to on)]' \
296
            '(--no-headless --headless)--no-headless[Not launch driver browser in headless mode]' \
297
            '--browser-name=[Name of the browser where tests will be executed]: :(android-chrome chrome edge firefox ios-safari safari)' \
298
            '--browser-dimension=[The dimension of the browser when running a Flutter Web test(defaults to "1600,1024")]: :' \
299
            '(--no-android-emulator --android-emulator)--android-emulator[Perform Flutter Driver testing using an Android Emulator]' \
300
            '(--no-android-emulator --android-emulator)--no-android-emulator[Not perform Flutter Driver testing using an Android Emulator]' \
301
            '--chrome-binary=[Location of the Chrome binary.]::_files' \
302
            '--write-sksl-on-exit[Attempts to write an SkSL file when the drive process is finished to the provided file, overwriting it if necessary]' \
303
            '*--test-artuments=[Additional arguments to pass to the Dart VM running The test script.]: :' \
304
            '--profile-memory=[Launch devtools and profile application memory, writing the output data as JSON]::_files -g "*.json"' \
170
          && ret=0
305
          && ret=0
171
        ;;
306
        ;;
172
        (format)
307
        (emulators)
173
            _arguments -C \
308
            _arguments -C \
174
            '(-h --help)'{-h,--help}'[Print this usage information.]' \
309
            '(-h --help)'{-h,--help}'[Print this usage information.]' \
310
            '--launch[The full or partial ID of the emulator to launch]' \
311
            '--cold[Used with the "--launch" flag to cold boot the emulator instance (Android only)]' \
312
            '--create[Creates a new Android emulator based on a Pixel device]' \
313
            '--name[Used with the "--create" flag. Specifies a name for the emulator being created]' \
175
          && ret=0
314
          && ret=0
176
        ;;
315
        ;;
177
        (fuchsia_reload)
316
        (format)
178
            _arguments -C \
317
            _arguments -C \
179
            '(-h --help)'{-h,--help}'[Print this usage information.]' \
318
            '(-h --help)'{-h,--help}'[Print this usage information]' \
180
            '--debug[Build a debug version of your app (default mode).]' \
319
            '(-v --verbose)'{-v,--verbose}'[Show all options and flags with --help]' \
181
            '--profile[Build a version of your app specialized for performance profiling.]' \
320
            '(-o --output)'{-o,--output=}'[Set where to write formatted output]: :(json none show write)' \
182
            '--release[Build a release version of your app.]' \
321
            '--set-exit-if-changed[Return exit code 1 if there are any formatting changes]' \
183
            '(-a --address)'{-a,--address}'[Fuchsia device network name or address.]' \
322
            '--fix[Apply all style fixes.]' \
184
            '(-b --build-dir)'{-b,--build-dir}'[Fuchsia build directory, e.g. out/release-x86-64.]' \
323
            '(-l --line-length)'{-l,--line-length=}'[Wrap lines longer than this(defaults to 80)]:lines:' \
185
            '(-g --gn-target)'{-g,--gn-target}'[GN target of the application, e.g //path/to/app:app.]' \
186
            '(-i --isolate-number)'{-i,--isolate-number}'[To reload only one instance, specify the isolate number, e.g. the number in foo$main-###### given by --list.]' \
187
            '(-l --list)'{-l,--list}'[Lists the running modules.]' \
188
            '(-l --no-list)'{-l,--no-list}'[Lists the running modules.]' \
189
            '(-n --name-override)'{-n,--name-override}'[On-device name of the application binary.]' \
190
            '(-2 --preview-dart-2)'{-2,--preview-dart-2}'[Preview Dart 2.0 functionality.]' \
191
            '(-2 --no-preview-dart-2)'{-2,--no-preview-dart-2}'[Preview Dart 2.0 functionality.]' \
192
            '(-t --target)'{-t,--target}'[Target app path / main entry-point file. Relative to --gn-target path, e.g. lib/main.dart. (defaults to "lib/main.dart")]' \
193
          && ret=0
324
          && ret=0
194
        ;;
325
        ;;
195
        (ide-config)
326
        (gen-l10n)
196
            _arguments -C \
327
            _arguments -C \
197
            '(-h --help)'{-h,--help}'[Print this usage information.]' \
328
            '(-h --help)'{-h,--help}'[Print this usage information.]' \
198
            '--overwrite[When performing operations, overwrite existing files.]' \
329
            '--arb-dir=[The directory where template arb files are located]::_path_files -/' \
199
            '--no-overwrite[When performing operations, overwrite existing files.]' \
330
            '--output-dir=[The directory where the generated localization classes will be written]::_path_files -/' \
200
            '--update-templates[Update the templates in the template directory from the current configuration files. This is the opposite of what ide-config usually does. Will search the flutter tree for .iml files and copy any missing ones into the template directory. If --overwrite is also specified, it will update any out-of-date files, and remove any deleted files from the template directory.]' \
331
            '--template-arb-file=[The path of template arb file]::_files' \
201
            && ret=0
332
            '--output-localization-file=[The filename for the output localization and localizations delegate classes]::_files -g "*.dart"' \
202
        ;;
333
            '--untranslated-messages-file=[The file that describes the localization messages have not been translated yet]::_files' \
203
        (inject-plugins)
334
            '--output-class=[The Dart class name to use for the output localization and localizations delegate classes]:class:' \
204
            _arguments -C \
335
            '--preferred-supported-locales=[The list of preferred supported locales for the application]::' \
205
            '(-h --help)'{-h,--help}'[Print this usage information.]' \
336
            '--header=[The header to prepend to the generated Dart localizations files]:header:' \
337
            '--header-file=[The header to prepend to the generated Dart localizations files]::_files' \
338
            '(--no-use-deferred-loading --use-deferred-loading)--use-deferred-loading[Generate the Dart localization file as deferred]' \
339
            '(--no-use-deferred-loading --use-deferred-loading)--no-use-deferred-loading[Not generate the Dart localization file as deferred]' \
340
            '--gen-inputs-and-outputs-list=[the tool generates a JSON file containing the tools inputs and outputs]::_path_files -/' \
341
            '(--no-synthetic-package --synthetic-package)--synthetic-package[Generate files as a synthetic package]' \
342
            '(--no-synthetic-package --synthetic-package)--no-synthetic-package[Not generate files as a synthetic package]' \
343
            '--project-dir=[the directory of the root Flutter project]::_path_files -/' \
344
            '(--no-required-resource-attributes --required-resource-attributes)--required-resource-attributes[Requires all resource ids to contain a corresponding resource attribute.]' \
345
            '(--no-required-resource-attributes --required-resource-attributes)--no-required-resource-attributes[Requires all resource ids to contain a corresponding resource attribute.]' \
346
            '(--no-nullable-getter --nullable-getter)--nullable-getter[The localizations class getter is nullable.]' \
347
            '(--no-nullable-getter --nullable-getter)--no-nullable-getter[The localizations class getter is not nullable.]' \
206
          && ret=0
348
          && ret=0
207
        ;;
349
        ;;
208
        (install)
350
        (install)
209
            _arguments -C \
351
            _arguments -C \
210
            '(-h --help)'{-h,--help}'[Print this usage information.]' \
352
            '(-h --help)'{-h,--help}'[Print this usage information.]' \
353
            '--device-user=[Identifier number for a user or work profile on Android only]:id:' \
354
            '--device-timeout=[Time in seconds to wait for devices to attach]:seconds:' \
355
            '(--no-uninstall-only --uninstall-only)--uninstall-only[Uninstall the app if already on the device. Skip install.]' \
356
            '(--no-uninstall-only --uninstall-only)--no-uninstall-only[Uninstall the app if already on the device. Skip install.]' \
211
          && ret=0
357
          && ret=0
212
        ;;
358
        ;;
213
        (logs)
359
        (logs)
214
            _arguments -C \
360
            _arguments -C \
215
            '(-h --help)'{-h,--help}'[Print this usage information.]' \
361
            '(-h --help)'{-h,--help}'[Print this usage information.]' \
216
            '(-c --clear)'{-c,--clear}'[Clear log history before reading from logs.]' \
362
            '(-c --clear)'{-c,--clear}'[Clear log history before reading from logs.]' \
363
            '--device-timeout=[Time in seconds to wait for devices to attach]:seconds:' \
217
          && ret=0
364
          && ret=0
218
        ;;
365
        ;;
219
        (packages)
366
        (precache)
220
        _arguments -C \
367
            _arguments -C \
221
            '1: :_package_subcomands' \
368
            '(-h --help)'{-h,--help}'[Print this usage information.]' \
222
            '*::pkg-arg:->pkg-args' \
369
            '(-a --all-platforms)'{-a,--all-platforms}'[Precache artifacts for all platforms.]' \
370
            '(-f --force)'{-f,--force}'[Force re-downloading of artifacts]' \
371
            '(--no-ios --ios)--ios[Precache artifacts for iOS development]' \
372
            '(--no-ios --ios)--no-ios[Not precache artifacts for iOS development]' \
373
            '(--no-web --web)--web[Precache artifacts for web development]' \
374
            '(--no-web --web)--no-web[Not precache artifacts for web development]' \
375
            '(--no-linux --linux)--linux[Precache artifacts for Linux desktop development]' \
376
            '(--no-linux --linux)--no-linux[Not recache artifacts for Linux desktop development]' \
377
            '(--no-windows --windows)--windows[Precache artifacts for Windows desktop development]' \
378
            '(--no-windows --windows)--no-windows[Not precache artifacts for Windows desktop  development]' \
379
            '(--no-winuwp --winuwp)--winuwp[Precache artifacts for Windows UWP desktop development]' \
380
            '(--no-winuwp --winuwp)--no-winuwp[Not recache artifacts for Windows UWP desktop development]' \
381
            '(--no-macos --macos)--macos[Precache artifacts for macOS desktop development]' \
382
            '(--no-macos --macos)--no-macos[Not precache artifacts for macOS desktop development]' \
383
            '(--no-fuchsia --fuchsia)--fuchsia[Precache artifacts for Fuchsia development]' \
384
            '(--no-fuchsia --fuchsia)--no-fuchsia[Not precache artifacts for Fuchsia development]' \
385
            '(--no-universal --universal)--universal[Precache artifacts required for any development platform]' \
386
            '(--no-universal --universal)--no-universal[Not precache artifacts required for any development platform]' \
223
          && ret=0
387
          && ret=0
224
          case "$state" in
225
            (pkg-args)
226
              case $words[1] in
227
                (get)
228
                  _arguments \
229
                    '(-h --help)'{-h,--help}'[Print this usage information.]' \
230
                    '--offline[Use cached packages instead of accessing the network.]' \
231
                  && ret=0
232
                ;;
233
                (pub)
234
                  _arguments \
235
                    '(-h --help)'{-h,--help}'[Print this usage information.]' \
236
                  && ret=0
237
                ;;
238
                (test)
239
                  _arguments \
240
                    '(-h --help)'{-h,--help}'[Print this usage information.]' \
241
                  && ret=0
242
                ;;
243
                (upgrade)
244
                  _arguments \
245
                    '(-h --help)'{-h,--help}'[Print this usage information.]' \
246
                    '--offline[Use cached packages instead of accessing the network.]' \
247
                  && ret=0
248
                ;;
249
            esac
250
            ;;
251
          esac
252
        ;;
388
        ;;
253
        
389
        (pub)
254
        (precache)
255
            _arguments -C \
390
            _arguments -C \
391
            '1: :_pub_subcommands' \
256
            '(-h --help)'{-h,--help}'[Print this usage information.]' \
392
            '(-h --help)'{-h,--help}'[Print this usage information.]' \
257
            '(-a --all-platforms)]'{-a--all-platforms}'[Precache artifacts for all platforms.]' \
258
          && ret=0
393
          && ret=0
259
        ;;
394
        ;;
260
        (run)
395
        (run)
Lines 263-421 Link Here
263
            '--debug[Build a debug version of your app (default mode).]' \
398
            '--debug[Build a debug version of your app (default mode).]' \
264
            '--profile[Build a version of your app specialized for performance profiling.]' \
399
            '--profile[Build a version of your app specialized for performance profiling.]' \
265
            '--release[Build a release version of your app.]' \
400
            '--release[Build a release version of your app.]' \
266
            '--flavor[Build a custom app flavor as defined by platform-specific build setup. Supports the use of product flavors in Android Gradle scripts. Supports the use of custom Xcode schemes.]' \
401
            '*--dart-define=[Additional key-value pairs that will be available as constants]: :' \
402
            '--flavor[Build a custom app flavor as defined by platform-specific build setup.]' \
403
            '--web-renderer[The renderer implementation to use when building for the web]: :(auto canvaskit html)' \
267
            '--trace-startup[Start tracing during startup.]' \
404
            '--trace-startup[Start tracing during startup.]' \
405
            '(--cache-startup-profile --no-cache-startup-profile)--cache-startup-profile[Caches the CPU profile collected before the first frame for startup analysis.]' \
406
            '(--cache-startup-profile --no-cache-startup-profile)--no-cache-startup-profile[Not caches the CPU profile collected before the first frame for startup analysis.]' \
407
            '--verbose-system-logs[Include verbose logging from the Flutter engine]' \
408
            '--cache-sksl[Cache the shader in the SkSL format instead of in binary or GLSL formats]' \
409
            '--dump-skp-on-shader-compilation[Cache the shader in the SkSL format instead of in binary or GLSL formats.]' \
410
            '--purge-persistent-cache[Removes all existing persistent caches]' \
268
            '--route[Which route to load when running the app.]' \
411
            '--route[Which route to load when running the app.]' \
269
            '--target-platform[Specify the target platform when building the app for an Android device. Ignored on iOS.]: :_target_platforms' \
412
            '--use-application-binary=[Specify a pre-built application binary to use when running]::_files -g "*.apk"' \
270
            '(-t= --target=)'{-t=,--target=}'[The main entry-point file of the application, as run on the device. If the --target option is omitted, but a file name is provided on the command line, then that is used instead. (defaults to "lib/main.dart")]: :_files -g "*.dart"' \
413
            '(--no-start-paused --start-paused)--start-paused[Start in a paused mode and wait for a debugger to connect.]' \
271
            '--observatory-port[Listen to the given port for an observatory debugger connection. Specifying port 0 will find a random free port.Defaults to the first available port after 8100.]' \
414
            '(--no-start-paused --start-paused)--no-start-paused[Not start in a paused mode and wait for a debugger to connect.]' \
415
            '--endless-trace-buffer[Enable tracing to an infinite buffer, instead of a ring buffer]' \
416
            '--trace-systrace[Enable tracing to the system tracer]' \
417
            '--trace-skia[Enable tracing of Skia code]' \
418
            *{-a,--dart-entrypoint-args=}'[Pass a list of arguments to the Dart entrypoint at application startup]: :' \
419
            '--web-launch-url=[The URL to provide to the browser]: :' \
420
            '(-t= --target=)'{-t=,--target=}'[The main entry-point file of the application, as run on the device.(defaults to "lib/main.dart")]: :_files -g "*.dart"' \
421
            '--device-vmservice-port=[Look for vmservice connections only from the specified port]:port:' \
422
            '--host-vmservice-port=[When a device-side vmservice port is forwarded to a host-side port]:port:' \
272
            '--pub[Whether to run "flutter packages get" before executing this command. (defaults to on)]' \
423
            '--pub[Whether to run "flutter packages get" before executing this command. (defaults to on)]' \
273
            '--no-pub[Whether to run "flutter packages get" before executing this command. (defaults to on)]' \
424
            '--no-pub[Whether to run "flutter packages get" before executing this command. (defaults to on)]' \
274
            '--full-restart[Stop any currently running application process before running the app. (defaults to on)]' \
425
            '--track-widget-creation[Track widget creation locations. (defaults to on)]' \
275
            '--no-full-restart[Stop any currently running application process before running the app. (defaults to on)]' \
426
            '--no-track-widget-creation[Not rack widget creation locations. (defaults to on)]' \
276
            '--start-paused[Start in a paused mode and wait for a debugger to connect.]' \
427
            '--null-assertions[Perform additional null assertions on the boundaries of migrated and un-migrated code]' \
277
            '--enable-software-rendering[Enable rendering using the Skia software backend. This is useful when testing Flutter on emulators. By default, Flutter will attempt to either use OpenGL or Vulkan and fall back to software when neither is available.]' \
428
            '--no-null-assertions[Not perform additional null assertions on the boundaries of migrated and un-migrated code]' \
278
            '--skia-deterministic-rendering    When combined with --enable-software-rendering, provides 100% deterministic Skia rendering.]' \
429
            '--device-user=[Identifier number for a user or work profile on Android only]:id:' \
279
            '--trace-skia[Enable tracing of Skia code. This is useful when debugging the GPU thread. By default, Flutter will not log skia code.]' \
430
            '--device-timeout=[Time in seconds to wait for devices to attach]:seconds:' \
280
            '--use-test-fonts[Enable (and default to) the "Ahem" font. This is a special font used in tests to remove any dependencies on the font metrics. It is enabled when you use "flutter test". Set this flag when running a test using "flutter run" for debugging purposes. This flag is only available when running in debug mode.]' \
431
            '--dds-port=[When this value is provided, the Dart Development Service (DDS) will be bound to the provided port]:port:' \
281
            '--no-use-test-fonts[Enable (and default to) the "Ahem" font. This is a special font used in tests to remove any dependencies on the font metrics. It is enabled when you use "flutter test". Set this flag when running a test using "flutter run" for debugging purposes. This flag is only available when running in debug mode.]' \
432
            *{-P,--android-project-arg=}'[Additional arguments specified as key=value that are passed directly to the gradle project via the -P flag]: :' \
433
            '--multidex[indicates that the app should be built with multidex support(defaults to on)]' \
434
            '--no-multidex[indicates that the app should not be built with multidex support(defaults to on)]' \
435
            '--ignore-deprecation[Indicates that the app should ignore deprecation warnings and continue to build using deprecated APIs]' \
436
            '--enable-software-rendering[Enable rendering using the Skia software backend.]' \
437
            '--skia-deterministic-rendering[When combined with --enable-software-rendering, provides 100% deterministic Skia rendering.]' \
438
            '--await-first-frame-when-tracing[Wait for the first frame when tracing startup ("--trace-startup")(defaults to on)]' \
439
            '--no-await-first-frame-when-trasing[Just dump the trace as soon as the application is running]' \
440
            '--use-test-fonts[Enable (and default to) the "Ahem" font.]' \
441
            '--no-use-test-fonts[Not enable (and default to) the "Ahem" font.]' \
282
            '--build[If necessary, build the app before running. (defaults to on)]' \
442
            '--build[If necessary, build the app before running. (defaults to on)]' \
283
            '--no-build[If necessary, build the app before running. (defaults to on)]' \
443
            '--no-build[If necessary, build the app before running. (defaults to on)]' \
284
            '--hot[Run with support for hot reloading. (defaults to on)]' \
444
            '--hot[Run with support for hot reloading. (defaults to on)]' \
285
            '--no-hot[Run with support for hot reloading. (defaults to on)]' \
445
            '--no-hot[Run with support for hot reloading. (defaults to on)]' \
286
            '--pid-file[Specify a file to write the process id to. You can send SIGUSR1 to trigger a hot reload and SIGUSR2 to trigger a full restart.]' \
446
            '--pid-file=[Specify a file to write the process id to.]::_files' \
287
          && ret=0
447
          && ret=0
288
        ;;
448
        ;;
289
        (screenshot)
449
        (screenshot)
290
            _arguments -C \
450
            _arguments -C \
291
            '(-h --help)'{-h,--help}'[Print this usage information.]' \
451
            '(-h --help)'{-h,--help}'[Print this usage information.]' \
292
            '(-o --out)'{-o,--out}'[Location to write the screenshot.]: :_files' \
452
            '(-o --out)'{-o,--out=}'[Location to write the screenshot.]: :_files' \
293
            '--skia=[Retrieve the last frame rendered by a Flutter app as a Skia picture using the specified observatory port. To find the observatory port number, use "flutter run --verbose" and look for "Forwarded host port ... for Observatory" in the output.]' \
453
            '--observatory-url=[The Observatory URL to which to connect]:uri:' \
454
            '--type=[The type of screenshot to retrieve.]: :(device rasterizer skia)' \
455
            '--device-timeout=[Time in seconds to wait for devices to attach]:seconds:' \
294
          && ret=0
456
          && ret=0
295
        ;;
457
        ;;
296
        (stop)
458
        (symbolize)
297
            _arguments -C \
459
            _arguments -C \
298
            '(-h --help)'{-h,--help}'[Print this usage information.]' \
460
            '(-h --help)'{-h,--help}'[Print this usage information.]' \
461
            '(-d --debug-info)'{-d,--debug-info=}'[A path to the symbols file generated with "--split-debug-info"]: :_files' \
462
            '(-i --input)'{-i,--input=}'[A file path containing a Dart stack trace.]: :_files' \
463
            '(-o --output)'{-o,--output=}'[A file path for a symbolized stack trace to be written to]: :_files' \
299
          && ret=0
464
          && ret=0
300
        ;;
465
        ;;
301
        (test)
466
        (test)
302
            _arguments -C \
467
            _arguments -C \
303
            '(-h --help)'{-h,--help}'[Print this usage information.]' \
468
            '(-h --help)'{-h,--help}'[Print this usage information.]' \
304
            '--pub[Whether to run "flutter packages get" before executing this command. (defaults to on)]' \
469
            '--pub[Run "flutter packages get" before executing this command. (defaults to on)]' \
305
            '--no-pub[Whether to run "flutter packages get" before executing this command. (defaults to on)]' \
470
            '--no-pub[Not to run "flutter packages get" before executing this command]' \
471
            '--null-assertions[Perform additional null assertions on the boundaries of migrated and un-migrated code]' \
472
            '--no-null-assertions[Not perform additional null assertions on the boundaries of migrated and un-migrated code]' \
473
            '--track-widget-creation[Track widget creation locations]' \
474
            '--no-track-widget-creation[Not track widget creation locations]' \
475
            '*--dart-define=[Additional key-value pairs that will be available as constants]: :' \
476
            '--web-renderer[The renderer implementation to use when building for the web]: :(auto canvaskit html)' \
477
            '--device-user=[Identifier number for a user or work profile on Android only]:id:' \
478
            '--flavor[Build a custom app flavor as defined by platform-specific build setup]' \
306
            '--name=[A regular expression matching substrings of the names of tests to run.]' \
479
            '--name=[A regular expression matching substrings of the names of tests to run.]' \
307
            '--plain-name=[A plain-text substring of the names of tests to run.]' \
480
            '--plain-name=[A plain-text substring of the names of tests to run.]' \
308
            '--start-paused[Start in a paused mode and wait for a debugger to connect. You must specify a single test file to run, explicitly. Instructions for connecting with a debugger and printed to the console once the test has started.]' \
481
            *{-t,--tags=}'[Run only tests associated with the specified tags]:tag:' \
482
            *{-x,--exclude-tags=}'[Run only tests that do not have the specified tags]:tag:' \
483
            '--start-paused[Start in a paused mode and wait for a debugger to connect.]' \
484
            '--run-skipped[Run skipped tests instead of skipping them]' \
485
            '--no-run-skipped[Not run skipped tests instead of skipping them]' \
309
            '--coverage[Whether to collect coverage information.]' \
486
            '--coverage[Whether to collect coverage information.]' \
310
            '--merge-coverage[Whether to merge coverage data with "coverage/lcov.base.info". Implies collecting coverage data. (Requires lcov)]' \
487
            '--merge-coverage[Whether to merge coverage data with "coverage/lcov.base.info" (Requires lcov)]' \
311
            '--coverage-path[Where to store coverage information (if coverage is enabled). (defaults to "coverage/lcov.info")]' \
488
            '--coverage-path=[Where to store coverage information (if coverage is enabled). (defaults to "coverage/lcov.info")]::_files' \
489
            '--update-goldens[Whether "matchesGoldenFile()" calls within your test methods should update the golden files]' \
490
            {-j,--concurrency=}'[The number of concurrent test processes to run]:nums:' \
491
            '--test-assets[Build the assets bundle for testing]' \
492
            '--no-test-assets[Not build the assets bundle for testing]' \
493
            '--test-randomize-ordering-seed[The seed to randomize the execution order of test cases within test files]' \
494
            '--total-shards[Tests can be sharded with the "--total-shards" and "--shard-index" arguments]' \
495
            '--shard-index[Tests can be sharded with the "--total-shards" and "--shard-index" arguments]' \
496
            {-r,--reporter=}'[Set how to print test results]: :(compact expanded json)' \
497
            '--timeout=[The default test timeout, specified either in seconds (e.g. "60s"). Defaults to "30s"]:seconds:' \
498
            '--dds-port=[the Dart Development Service (DDS) will be bound to the provided port]:port:' \
312
          && ret=0
499
          && ret=0
313
        (trace)
314
            _arguments -C \
315
            '(-h --help)'{-h,--help}'[Print this usage information.]' \
316
            '--start[Start tracing.]' \
317
            '--stop[Stop tracing.]' \
318
            '--out[Specify the path of the saved trace file.]' \
319
            '(-d --duration)'{-d,--duration}'[Duration in seconds to trace. (defaults to "10")]' \
320
            '--debug-port[Local port where the observatory is listening. (defaults to "8100")]' \
321
          && ret=0
322
        ;;
500
        ;;
323
        (update-packages)
324
            _arguments -C \
325
            '(-h --help)'{-h,--help}'[Print this usage information.]' \
326
            '--force-upgrade[Attempt to update all the dependencies to their latest versions. This will actually modify the pubspec.yaml files in your checkout.]' \
327
            '--no-force-upgrade[Attempt to update all the dependencies to their latest versions. This will actually modify the pubspec.yaml files in your checkout.]' \
328
            '--paths[Finds paths in the dependency chain leading from package specified in --from to package specified in --to.]' \
329
            '--no-paths[Finds paths in the dependency chain leading from package specified in --from to package specified in --to.]' \
330
            '--from[Used with flag --dependency-path. Specifies the package to begin searching dependency path from.]' \
331
            '--to[Used with flag --dependency-path. Specifies the package that the sought after dependency path leads to.]' \
332
            '--transitive-closure[Prints the dependency graph that is the transitive closure of packages the Flutter SDK depends on.]' \
333
            '--no-transitive-closure[Prints the dependency graph that is the transitive closure of packages the Flutter SDK depends on.]' \
334
            '--verify-only[verifies the package checksum without changing or updating deps]' \
335
            '--no-verify-only[verifies the package checksum without changing or updating deps]' \
336
          && ret=0
337
        ;;
338
        (upgrade)
501
        (upgrade)
339
            _arguments -C \
502
            _arguments -C \
340
            '(-h --help)'{-h,--help}'[Print this usage information.]' \
503
            '(-h --help)'{-h,--help}'[Print this usage information.]' \
504
            '(-f --force)'{-f,--force}'[Force upgrade the flutter branch, potentially discarding local changes]' \
505
            '--verify-only[Checks for any new Flutter updates, without actually fetching them]' \
341
          && ret=0
506
          && ret=0
342
        ;;
507
        ;;
343
        
344
      esac
508
      esac
345
    ;;
509
    ;;
346
  esac
510
  esac
347
  
511
348
  
512
349
  return ret
513
  return ret
350
  
514
351
  }
515
  }
352
516
353
  
517
354
(( $+functions[root_commands] )) ||
518
(( $+functions[_root_commands] )) ||
355
_root_commands() {
519
_root_commands() {
356
  local commands;
520
  local commands;
357
  commands=(
521
  commands=(
358
    "analyze:Analyze the project's Dart code."
522
    "analyze:Analyze the project's Dart code."
523
    'assemble:Assemble and build flutter resources.'
524
    'attach:Attach to a running application.'
525
    'bash-completion:Output command line shell completion setup scripts.'
359
    'build:Flutter build commands.'
526
    'build:Flutter build commands.'
360
    'channel:List or switch flutter channels.'
527
    'channel:List or switch flutter channels.'
361
    'clean:Delete the build/ directory.'
528
    'clean:Delete the build/ directory.'
362
    'config:Configure Flutter settings.'
529
    'config:Configure Flutter settings.'
363
    'create:Create a new Flutter project.'
530
    'create:Create a new Flutter project.'
531
    'custom-devices:List, reset, add and delete custom devices'
364
    'daemon:Run a persistent, JSON-RPC based server to communicate with devices.'
532
    'daemon:Run a persistent, JSON-RPC based server to communicate with devices.'
533
    'debug-adapter:Run a Debug Adapter Protol server to communicate with the Flutter tool'
534
    'downgrade:Downgrade Flutter to the last active version for the current channel'
365
    'devices:List all connected devices.'
535
    'devices:List all connected devices.'
366
    'doctor:Show information about the installed tooling.'
536
    'doctor:Show information about the installed tooling.'
367
    'drive:Runs Flutter Driver tests for the current project.'
537
    'drive:Runs Flutter Driver tests for the current project.'
538
    'emulators:List, launch and create emulators.'
368
    'format:Format one or more dart files.'
539
    'format:Format one or more dart files.'
369
    'fuchsia_reload:Hot reload on Fuchsia.'
540
    'gen-l10n:Generate localizations for the current project.'
370
    'help:Display help information for flutter.'
541
    'help:Display help information for flutter.'
371
    'ide-config:Configure the IDE for use in the Flutter tree.'
372
    'inject-plugins:Re-generates the GeneratedPluginRegistrants.'
373
    'install:Install a Flutter app on an attached device.'
542
    'install:Install a Flutter app on an attached device.'
374
    'logs:Show log output for running Flutter apps.'
543
    'logs:Show log output for running Flutter apps.'
375
    'packages:Commands for managing Flutter packages.'
376
    "precache:Populates the Flutter tool's cache of binary artifacts."
544
    "precache:Populates the Flutter tool's cache of binary artifacts."
545
    'pub:Commands for managing Flutter packages.'
377
    'run:Run your Flutter app on an attached device.'
546
    'run:Run your Flutter app on an attached device.'
378
    'screenshot:Take a screenshot from a connected device.'
547
    'screenshot:Take a screenshot from a connected device.'
379
    'stop:Stop your Flutter app on an attached device.'
548
    'symbolize:Symbolize a stack trace from an AOT-compiled Flutter app.'
380
    'test:Run Flutter unit tests for the current project.'
549
    'test:Run Flutter unit tests for the current project.'
381
    'trace:Start and stop tracing for a running Flutter app.'
550
    'upgrade:Upgrade your copy of Flutter.'
382
    'update-packages:Update the packages inside the Flutter repo.'
551
  )
383
    'upgrade:Upgrade your copy of Flutter.')
384
  _describe -t commands 'command' commands "$@"
552
  _describe -t commands 'command' commands "$@"
385
}
553
}
386
554
387
(( $+functions[_build_entities] )) ||
555
(( $+functions[_build_entities] )) ||
388
_build_entities() {
556
_build_entities() {
389
  local entities;
557
  local entities;
390
  entities=("aot:Build an ahead-of-time compiled snapshot of your app's Dart code."
558
  entities=(
391
  "apk:Build an Android APK file from your app."
559
      "aar:Build a repository containing an AAR and a POM file."
392
  "flx:Build a Flutter FLX file from your app."
560
      "apk:Build an Android APK file from your app."
393
  "ios:Build an iOS application bundle (Mac OS X host only).")
561
      "appbundle:Build an Android App Bundle file from your app."
562
      "bundle:Build the Flutter assets directory from your app."
563
      "fuchsia:Build the Fuchsia target."
564
      "ios:Build an iOS application bundle (Mac OS X host only)."
565
      "linux:Build a Linux desktop application."
566
      "macos:Build a macOS desktop application."
567
      "windows:Build a Windows desktop application."
568
      "winuwp:Build a Windows UWP desktop application."
569
  )
394
  _describe -t entities 'entity' entities "$@"
570
  _describe -t entities 'entity' entities "$@"
395
}
571
}
396
572
573
(( $+functions[_custom_devices_subcommands] )) ||
574
_custom_devices_subcommands() {
575
  local subcmds;
576
  subcmds=(
577
      "add:Add a new device the custom devices config file"
578
      "delete:Delete a device from the config file"
579
      "list:List the currently configured custom devices, both enabled and disabled, reachable or not"
580
      "reset:Reset the config file to the default"
581
  )
582
  _describe -t subcmds 'subcommands' subcmds "$@"
583
}
584
397
(( $+functions[_project_templates] )) ||
585
(( $+functions[_project_templates] )) ||
398
_project_templates() {
586
_project_templates() {
399
  local templates;
587
  local templates;
400
  templates=("app:(default) Generate a Flutter application."
588
  templates=(
401
  "package:Generate a shareable Flutter project containing modular Dart code."
589
      "app:(default) Generate a Flutter application."
402
  "plugin:Generate a shareable Flutter project containing an API in Dart code with a platform-specific implementation for Android, for iOS code, or for both.")
590
      "module:Generate a shareable Flutter project containing modular Dart code."
591
      "package:Generate a shareable Flutter project containing modular Dart code."
592
      "plugin:Generate a shareable Flutter project containing an API in Dart code with a platform-specific implementation for Android, for iOS code, or for both."
593
      "plugin_ffi:Generate a shareable Flutter project containing an API in Dart code with a platform-specific implementation through dart:ffi for Android, iOS, Linux, macOS, Windows, or any combination of these."
594
      "skeleton:Generate a List View / Detail View Flutter application that follows community best practices."
595
  )
403
  _describe -t templates 'template' templates "$@"
596
  _describe -t templates 'template' templates "$@"
404
}
597
}
405
598
406
(( $+functions[_ios_languages] )) ||
599
(( $+functions[_ios_languages] )) ||
407
_ios_languages() {
600
_ios_languages() {
408
  local languages;
601
  local languages;
409
  languages=("objc:(default) Objective-C."
602
  languages=("objc:Objective-C."
410
  "swift:Swift.")
603
  "swift:(default) Swift.")
411
  _describe -t languages 'language' languages "$@"
604
  _describe -t languages 'language' languages "$@"
412
}
605
}
413
606
414
(( $+functions[_droid_languages] )) ||
607
(( $+functions[_droid_languages] )) ||
415
_droid_languages() {
608
_droid_languages() {
416
  local languages;
609
  local languages;
417
  languages=("java:(default) Java."
610
  languages=("java:Java."
418
  "kotlin:Kotlin.")
611
  "kotlin:(default) Kotlin.")
419
  _describe -t languages 'language' languages "$@"
612
  _describe -t languages 'language' languages "$@"
420
}
613
}
421
614
Lines 436-441 Link Here
436
  "pub:Pass the remaining arguments to Dart's 'pub' tool."
629
  "pub:Pass the remaining arguments to Dart's 'pub' tool."
437
  "test:Run the 'test' package."
630
  "test:Run the 'test' package."
438
  "upgrade:Upgrade packages in a Flutter project.")
631
  "upgrade:Upgrade packages in a Flutter project.")
632
  _describe -t subcommands 'subcommand' subcommands "$@"
633
}
634
635
(( $+functions[_pub_subcommands] )) ||
636
_pub_subcommands() {
637
  local subcommands;
638
  subcommands=(
639
      "add:Add a dependency to pubspec.yaml"
640
      "cache:Work with the Pub system cache"
641
      "deps:Print package dependencies"
642
      "downgrade:Downgrade packages in a Flutter project"
643
      "get:Get packages in a Flutter project"
644
      "global:Work with Pub global packages"
645
      "login:Log into pub.dev"
646
      "logout:Log out of pub.dev"
647
      "outdated:Analyze dependencies to find which ones can be upgraded"
648
      "pub:Pass the remaining arguments to Dart's 'pub' tool"
649
      "publish:Publish the current package to pub.dartlang.org"
650
      "remove:Removes a dependency from the current package"
651
      "run:Run an executable from a package"
652
      "test:Run the 'test' package"
653
      "token:Manage authentication tokens for hosted pub repositories"
654
      "upgrade:Upgrade the current package's dependencies to latest versions"
655
      "uploader:Manage uploaders for a package on pub.dev"
656
      "version:Print Pub version"
657
  )
439
  _describe -t subcommands 'subcommand' subcommands "$@"
658
  _describe -t subcommands 'subcommand' subcommands "$@"
440
}
659
}
441
660
(-)zsh-completions-0.32.0/src/_gist (-1 / +2 lines)
Lines 36-41 Link Here
36
#
36
#
37
#  * Akira Maeda <https://github.com/glidenote>
37
#  * Akira Maeda <https://github.com/glidenote>
38
#  * Patrick Ziegler <https://github.com/patrick96>
38
#  * Patrick Ziegler <https://github.com/patrick96>
39
#  * Shivam Mehta <https://github.com/maniac-en>
39
#
40
#
40
# ------------------------------------------------------------------------------
41
# ------------------------------------------------------------------------------
41
# -*- mode: zsh; sh-indentation: 2; indent-tabs-mode: nil; sh-basic-offset: 2; -*-
42
# -*- mode: zsh; sh-indentation: 2; indent-tabs-mode: nil; sh-basic-offset: 2; -*-
Lines 53-59 Link Here
53
  '(--no-private)'--no-private'[Makes your gist no private.]' \
54
  '(--no-private)'--no-private'[Makes your gist no private.]' \
54
  '(-d --description)'{-d,--description}'[Adds a description to your gist.]:DESCRIPTION' \
55
  '(-d --description)'{-d,--description}'[Adds a description to your gist.]:DESCRIPTION' \
55
  '(-s --shorten)'{-s,--shorten}'[Shorten the gist URL using git.io.]' \
56
  '(-s --shorten)'{-s,--shorten}'[Shorten the gist URL using git.io.]' \
56
  '(-u --update)'{-u,--update}'[Update an existing gist.]:URL ID' \
57
  '(-u --update)'{-u,--update}'[Update an existing gist.]:URL ID:user_gists' \
57
  '(-a --anonymous)'{-a,--anonymous}'[Create an anonymous gist.]' \
58
  '(-a --anonymous)'{-a,--anonymous}'[Create an anonymous gist.]' \
58
  '(-c --copy)'{-c,--copy}'[Copy the resulting URL to the clipboard]' \
59
  '(-c --copy)'{-c,--copy}'[Copy the resulting URL to the clipboard]' \
59
  '(-e --embed)'{-e,--embed}'[Copy the embed code for the gist to the clipboard]' \
60
  '(-e --embed)'{-e,--embed}'[Copy the embed code for the gist to the clipboard]' \
(-)zsh-completions-0.32.0/src/_git-flow (+1 lines)
Lines 1-4 Link Here
1
#compdef git-flow
1
#compdef git-flow
2
#description Git Flow branching model
2
# ------------------------------------------------------------------------------
3
# ------------------------------------------------------------------------------
3
# Copyright (c) 2010-2015 Justin Hileman
4
# Copyright (c) 2010-2015 Justin Hileman
4
#
5
#
(-)zsh-completions-0.32.0/src/_git-revise (-4 / +19 lines)
Lines 17-30 Link Here
17
17
18
__git-revise_commits() {
18
__git-revise_commits() {
19
  local -a commits
19
  local -a commits
20
  commits=(${(f)"$(git log -20 --pretty=format:'%h:%d %s' | sed 's/: /:/')"})
20
  if git rev-parse --is-inside-work-tree 1>/dev/null 2>/dev/null; then
21
  _describe -V 'commit' commits
21
    commits=(${(f)"$(git log -20 --pretty=format:'%h:%d %s' | sed 's/: /:/')"})
22
    _describe -V 'commit' commits
23
  else
24
    _message 'not a git repository'
25
  fi
22
}
26
}
23
27
24
__git-revise_branches() {
28
__git-revise_branches() {
25
  local -a branches
29
  local -a branches
26
  branches=(${(f)"$(git for-each-ref --format='%(refname:short)' refs/heads/)"})
30
  if git rev-parse --is-inside-work-tree 1>/dev/null 2>/dev/null; then
27
  _describe 'branch' branches
31
    branches=(${(f)"$(git for-each-ref --format='%(refname:short)' refs/heads/)"})
32
    _describe 'branch' branches
33
  else
34
    _message 'not a git repository'
35
  fi
28
}
36
}
29
37
30
_git-revise() {
38
_git-revise() {
Lines 50-52 Link Here
50
58
51
_git-revise "$@"
59
_git-revise "$@"
52
60
61
# Local Variables:
62
# mode: Shell-Script
63
# sh-indentation: 2
64
# indent-tabs-mode: nil
65
# sh-basic-offset: 2
66
# End:
67
# vim: ft=zsh sw=2 ts=2 et
(-)zsh-completions-0.32.0/src/_golang (-18 / +117 lines)
Lines 30-36 Link Here
30
# Description
30
# Description
31
# -----------
31
# -----------
32
#
32
#
33
#  Completion script for go 1.14 (http://golang.org).
33
#  Completion script for go 1.18 (http://golang.org).
34
#
34
#
35
# ------------------------------------------------------------------------------
35
# ------------------------------------------------------------------------------
36
# Authors
36
# Authors
Lines 80-86 Link Here
80
    'scavenge[enable debugging mode of heap scavenger]:boolean:(1 0)'
80
    'scavenge[enable debugging mode of heap scavenger]:boolean:(1 0)'
81
    'scavtrace[emit scavenger work information (memory returned and memory utilization)]:boolean:(1 0)'
81
    'scavtrace[emit scavenger work information (memory returned and memory utilization)]:boolean:(1 0)'
82
    'scheddetail[emit detailed states of scheduler, processors, threads, goroutines]:boolean:(1 0)'
82
    'scheddetail[emit detailed states of scheduler, processors, threads, goroutines]:boolean:(1 0)'
83
    'schedtrace[emmit scheduler state every N ms to stderr]:int'
83
    'schedtrace[emit scheduler state every N ms to stderr]:int'
84
    'tracebackancestors[set ancestor goroutines to be printed in goroutine creation stacks]:int'
84
    'tracebackancestors[set ancestor goroutines to be printed in goroutine creation stacks]:int'
85
    'asyncpreemptoff[disable signal-based asynchronous goroutine preemption.]:boolean:(1 0)'
85
    'asyncpreemptoff[disable signal-based asynchronous goroutine preemption.]:boolean:(1 0)'
86
  )
86
  )
Lines 167-172 Link Here
167
  '-race[enable race detector]' \
167
  '-race[enable race detector]' \
168
  '-shared[generate code that can be linked into a shared library]' \
168
  '-shared[generate code that can be linked into a shared library]' \
169
  '-smallframes[reduce the size limit for stack allocated objects]' \
169
  '-smallframes[reduce the size limit for stack allocated objects]' \
170
  '-spectre=[enable spectre mitigations]:mitigations:(all index ret)' \
170
  '-std[compiling standard library]' \
171
  '-std[compiling standard library]' \
171
  '-symabis=[read symbol ABIs from file]:file' \
172
  '-symabis=[read symbol ABIs from file]:file' \
172
  '-traceprofile=[write an execution trace to file]:file' \
173
  '-traceprofile=[write an execution trace to file]:file' \
Lines 191-196 Link Here
191
'install:compile and install packages and dependencies'
192
'install:compile and install packages and dependencies'
192
'list:list packages or modules'
193
'list:list packages or modules'
193
'mod:module maintenance'
194
'mod:module maintenance'
195
'work:workspace maintenance'
194
'run:compile and run Go program'
196
'run:compile and run Go program'
195
'test:test packages'
197
'test:test packages'
196
'tool:run specified go tool'
198
'tool:run specified go tool'
Lines 235-240 Link Here
235
    GCCGOTOOLDIR)
237
    GCCGOTOOLDIR)
236
      ;&
238
      ;&
237
    GOPATH)
239
    GOPATH)
240
      ;&
241
    GOMODCACHE)
238
      _files -/
242
      _files -/
239
      ;;
243
      ;;
240
    # regular files (using fallthrough)
244
    # regular files (using fallthrough)
Lines 333-349 Link Here
333
    '-p[number of builds that can be run in parallel]:number'
337
    '-p[number of builds that can be run in parallel]:number'
334
    '-race[enable data race detection]'
338
    '-race[enable data race detection]'
335
    '-msan[enable interoperation with memory sanitizer]'
339
    '-msan[enable interoperation with memory sanitizer]'
340
    '-asan[enable interoperation with address sanitizer]'
336
    '-v[print the names of packages as they are compiled]'
341
    '-v[print the names of packages as they are compiled]'
337
    '-work[print temporary work directory and keep it]'
342
    '-work[print temporary work directory and keep it]'
338
    '-x[print the commands]'
343
    '-x[print the commands]'
339
    '-asmflags[arguments for each go tool asm invocation]:flags'
344
    '-asmflags[arguments for each go tool asm invocation]:flags'
340
    '-buildmode[build mode to use]:mode:__go_buildmodes'
345
    '-buildmode[build mode to use]:mode:__go_buildmodes'
346
    '-buildvcs[stamp binaries with version control information]:mode:(internal external auto)'
341
    '-compiler[name of compiler to use]:name'
347
    '-compiler[name of compiler to use]:name'
342
    '-gccgoflags[arguments for gccgo]:args'
348
    '-gccgoflags[arguments for gccgo]:args'
343
    '*-gcflags=[arguments for each go tool compile invocation]:args:__go_gcflags'
349
    '*-gcflags=[arguments for each go tool compile invocation]:args:__go_gcflags'
344
    '-installsuffix[suffix to add to package directory]:suffix'
350
    '-installsuffix[suffix to add to package directory]:suffix'
345
    '-ldflags[arguments to pass on each go tool link invocation.]:flags'
351
    '-ldflags[arguments to pass on each go tool link invocation.]:flags'
346
    '-linkshared[link against shared libraries]'
352
    '-linkshared[link against shared libraries]'
353
    '-overlay[read a JSON config file that provides an overlay for build operations]:file:_files -g "*.json"'
347
    '-pkgdir[install and load all packages from dir]:dir'
354
    '-pkgdir[install and load all packages from dir]:dir'
348
    '-tags[list of build tags to consider satisfied]:tags'
355
    '-tags[list of build tags to consider satisfied]:tags'
349
    '-trimpath[remove all file system paths from the resulting executable]'
356
    '-trimpath[remove all file system paths from the resulting executable]'
Lines 355-360 Link Here
355
    '-modfile=[read an alternate go.mod file]:modfile: _files -g "*.mod"'
362
    '-modfile=[read an alternate go.mod file]:modfile: _files -g "*.mod"'
356
    )
363
    )
357
364
365
    edit_flags=(
366
    '-fmt[reformats the go.mod/work file without making other changes]' \
367
    '*-require=[add a requirement on the given module path and version]:require' \
368
    '*-droprequire=[drop a requirement on the given module path and version]:droprequire' \
369
    '-go[sets the expected Go language version]:goversion' \
370
    '*-replace=[add a replacement of the given module path and version]:replace' \
371
    '*-dropreplace=[drop a replacement of the given module path and version]:dropreplace' \
372
    '-json[prints the final go.mod/work file in JSON format]' \
373
    '-print[prints the final go.mod/work in its text format]' \
374
    )
375
358
    __go_packages() {
376
    __go_packages() {
359
      local gopaths
377
      local gopaths
360
      declare -a gopaths
378
      declare -a gopaths
Lines 389-394 Link Here
389
        _arguments \
407
        _arguments \
390
          '-i[remove corresponding installed archive or binary]' \
408
          '-i[remove corresponding installed archive or binary]' \
391
          '-r[apply clean recursively on all dependencies]' \
409
          '-r[apply clean recursively on all dependencies]' \
410
          '-cache[remove the entire go build cache]' \
411
          '-testcache[expire all test results in the go build cache]' \
412
          '-modcache[clean to remove the entire module download cache]' \
413
          '-fuzzcache[remove files stored in the Go build cache for fuzz testing]' \
392
          ${build_flags[@]} \
414
          ${build_flags[@]} \
393
          ${mod_flags[@]} \
415
          ${mod_flags[@]} \
394
          '*:importpaths:__go_packages'
416
          '*:importpaths:__go_packages'
Lines 396-403 Link Here
396
418
397
      doc)
419
      doc)
398
        _arguments \
420
        _arguments \
421
          '-all[show all the documentation for the package]' \
399
          '-c[respect case when matching symbols]' \
422
          '-c[respect case when matching symbols]' \
400
          '-cmd[treat a command (package main) like a regular package]' \
423
          '-cmd[treat a command (package main) like a regular package]' \
424
          '-short[one-line representation for each symbol]' \
425
          '-src[show the full source code for the symbol]' \
401
          '-u[show docs for unexported and exported symbols and methods]'
426
          '-u[show docs for unexported and exported symbols and methods]'
402
          ;;
427
          ;;
403
428
Lines 410-417 Link Here
410
          "GOCACHE[directory to store cached information]:go build cache dir"
435
          "GOCACHE[directory to store cached information]:go build cache dir"
411
          "GODEBUG[enable runtime debug facilities]:runtime debug settings"
436
          "GODEBUG[enable runtime debug facilities]:runtime debug settings"
412
          "GOENV[location of the go environment configuration file]:configuration file"
437
          "GOENV[location of the go environment configuration file]:configuration file"
413
          "GOFLAGS[default go command line flags]:space sparated default command line flags"
438
          "GOFLAGS[default go command line flags]:space separated default command line flags"
414
          "GOINSECURE[module prefixes that are feched insecurely]:comma separated module prefixes"
439
          "GOINSECURE[module prefixes that are fetched insecurely]:comma separated module prefixes"
415
          "GOOS[target operating system]:operating system"
440
          "GOOS[target operating system]:operating system"
416
          "GOPATH[path to resolve import statements]:import path"
441
          "GOPATH[path to resolve import statements]:import path"
417
          "GOPROXY[URL of go module proxy]:proxy url"
442
          "GOPROXY[URL of go module proxy]:proxy url"
Lines 420-425 Link Here
420
          "GOPRIVATE[modules that should always be fetched directly]:comma separated glob patterns"
445
          "GOPRIVATE[modules that should always be fetched directly]:comma separated glob patterns"
421
          "GONOPROXY[modules that should always be fetched directly]:comma separated glob patterns"
446
          "GONOPROXY[modules that should always be fetched directly]:comma separated glob patterns"
422
          "GONOSUMDB[modules that should not be compared against the checksum db]:comma separated glob patterns"
447
          "GONOSUMDB[modules that should not be compared against the checksum db]:comma separated glob patterns"
448
          "GOMODCACHE[module cache directory]:path"
423
          "GOSUMDB[checksum database]:name(+publickey( url))"
449
          "GOSUMDB[checksum database]:name(+publickey( url))"
424
          "AR[command for manipulating library archives (for gccgo)]:archive manipulation program"
450
          "AR[command for manipulating library archives (for gccgo)]:archive manipulation program"
425
          "CC[command to compile C code]:C compiler"
451
          "CC[command to compile C code]:C compiler"
Lines 447-453 Link Here
447
          "GOMIPS[mips instruction set]:mips instruction set"
473
          "GOMIPS[mips instruction set]:mips instruction set"
448
          "GOMIPS64[mips64 instruction set]:mips64 instruction set"
474
          "GOMIPS64[mips64 instruction set]:mips64 instruction set"
449
          "GOWASM[web assembly features]:comma separated web assembly features"
475
          "GOWASM[web assembly features]:comma separated web assembly features"
450
          "GCCGOTOOLDIR[directory of gccgo tools]:gccgo tool director"
476
          "GCCGOTOOLDIR[directory of gccgo tools]:gccgo tool directory"
451
          "GOROOT_FINAL[root of the go tree]:go root"
477
          "GOROOT_FINAL[root of the go tree]:go root"
452
          "GO_EXTLINK_ENABLED[enable external linking mode]:boolean"
478
          "GO_EXTLINK_ENABLED[enable external linking mode]:boolean"
453
          "GIT_ALLOW_PROTOCOL[schemes allowed to fetch]:colon separated git schemes"
479
          "GIT_ALLOW_PROTOCOL[schemes allowed to fetch]:colon separated git schemes"
Lines 497-502 Link Here
497
          ;;
523
          ;;
498
524
499
      get)
525
      get)
526
        # no mod_flags for get
500
        _arguments \
527
        _arguments \
501
          '-d[instructs get to stop after downloading the packages]' \
528
          '-d[instructs get to stop after downloading the packages]' \
502
          '-f[force get -u not to verify that each package has been checked from vcs]' \
529
          '-f[force get -u not to verify that each package has been checked from vcs]' \
Lines 505-511 Link Here
505
          '-t[also download the packages required to build tests]' \
532
          '-t[also download the packages required to build tests]' \
506
          '-u[use the network to update the named packages]' \
533
          '-u[use the network to update the named packages]' \
507
          ${build_flags[@]} \
534
          ${build_flags[@]} \
508
          # no mod_flags for get
509
          '*:importpaths:__go_packages'
535
          '*:importpaths:__go_packages'
510
          ;;
536
          ;;
511
537
Lines 560-583 Link Here
560
            case $words[1] in
586
            case $words[1] in
561
              download)
587
              download)
562
                _arguments \
588
                _arguments \
563
                  '-json[print a sequance of JSON objects to standard output]'
589
                  '-json[print a sequence of JSON objects to standard output]' \
590
                  '-x[print the commands download executes]'
564
                ;;
591
                ;;
565
592
566
              edit)
593
              edit)
567
                _arguments \
594
                _arguments \
568
                  '-fmt[reformats the go.mod file without making other changes]' \
595
                  ${edit_flags[@]} \
569
                  "-module[change the module's path]" \
596
                  "-module[change the module's path]" \
570
                  '*-require=[add a requirement on the given module path and version]:require' \
571
                  '*-droprequire=[drop a requirement on the given module path and version]:droprequire' \
572
                  '*-exclude=[add an exclusion for the given module path and version]:exclude' \
597
                  '*-exclude=[add an exclusion for the given module path and version]:exclude' \
573
                  '*-dropexclude=[drop an exclusion for the given module path and version]:dropexclude' \
598
                  '*-dropexclude=[drop an exclusion for the given module path and version]:dropexclude' \
574
                  '*-replace=[add a replacement of the given module path and version]:replace' \
575
                  '*-dropreplace=[drop a replacement of the given module path and version]:dropreplace' \
576
                  '-json[prints the final go.mod file in JSON format]' \
577
                  '-print[prints the final go.mod in its text format]' \
578
                  ':go.mod:_path_files -g "go.mod"'
599
                  ':go.mod:_path_files -g "go.mod"'
579
                ;;
600
                ;;
580
              graph)
601
              graph)
602
                _arguments \
603
                  '-go[report the module graph as loaded by the given Go version]:goversion'
581
                ;;
604
                ;;
582
              init)
605
              init)
583
                # Use go packages as module name suggestion
606
                # Use go packages as module name suggestion
Lines 586-596 Link Here
586
                ;;
609
                ;;
587
              tidy)
610
              tidy)
588
                _arguments \
611
                _arguments \
589
                  '-v[print information about removed modules to standard error]'
612
                  '-v[print information about removed modules to standard error]' \
613
                  '-e[attempt to proceed despite errors encountered while loading packages]' \
614
                  '-go[update the go directive in the go.mod file to the given version]:goversion' \
615
                  '-compat[preserves additional checksums needed for the indicated Go version]'
590
                ;;
616
                ;;
591
              vendor)
617
              vendor)
592
                _arguments \
618
                _arguments \
593
                  '-v[print the names of vendored modules and packages to standard error]'
619
                  '-v[print the names of vendored modules and packages to standard error]' \
620
                  '-e[attempt to proceed despite errors encountered while loading packages]' \
621
                  '-o[create the vendor directory at the given path instead of "vendor"]:directory:_path_files -/'
594
                ;;
622
                ;;
595
              verify)
623
              verify)
596
                ;;
624
                ;;
Lines 626-639 Link Here
626
            '-test.cpuprofile[write a cpu profile to file]:file:_files' \
654
            '-test.cpuprofile[write a cpu profile to file]:file:_files' \
627
            '-test.failfast[do not start new tests after the first test failure]' \
655
            '-test.failfast[do not start new tests after the first test failure]' \
628
            '-test.list[list tests, examples, and benchmarks matching regexp then exit]:regexp' \
656
            '-test.list[list tests, examples, and benchmarks matching regexp then exit]:regexp' \
657
            '-test.fuzz[run the fuzz test matching regexp]:regexp' \
658
            '-test.fuzzcachedir[directory where interesting fuzzing inputs are stored]:dir:_path_files -/' \
659
            '-test.fuzzminimizetime[time to spend minimizing a value after finding a failing input (default 1m0s)]:t' \
660
            '-test.fuzztime[time to spend fuzzing; default is to run indefinitely]:t' \
661
            '-test.fuzzworker[coordinate with the parent process to fuzz random values (for use only by cmd/go)]' \
662
            '-test.list[list tests, examples, and benchmarks matching regexp then exit]:regexp' \
629
            '-test.memprofile[write an allocation profile to file]:file:_files' \
663
            '-test.memprofile[write an allocation profile to file]:file:_files' \
630
            '-test.memprofilerate[set memory allocation profiling rate (see runtime.MemProfileRate)]:rate' \
664
            '-test.memprofilerate[set memory allocation profiling rate (see runtime.MemProfileRate)]:rate' \
631
            '-test.mutexprofile[write a mutex contention profile to the named file after execution]:string' \
665
            '-test.mutexprofile[write a mutex contention profile to the named file after execution]:string' \
632
            '-test.mutexprofilefraction[if >= 0, calls runtime.SetMutexProfileFraction() (default 1)]:int' \
666
            '-test.mutexprofilefraction[if >= 0, calls runtime.SetMutexProfileFraction() (default 1)]:int' \
633
            '-test.outputdir[write profiles to dir]:dir:_path_files -/' \
667
            '-test.outputdir[write profiles to dir]:dir:_path_files -/' \
668
            '-test.paniconexit0[panic on call to os.Exit(0)]' \
634
            '-test.parallel[run at most n tests in parallel (default 4)]:n' \
669
            '-test.parallel[run at most n tests in parallel (default 4)]:n' \
635
            '-test.run[run only tests and examples matching regexp]:regexp' \
670
            '-test.run[run only tests and examples matching regexp]:regexp' \
636
            '-test.short[run smaller test suite to save time]' \
671
            '-test.short[run smaller test suite to save time]' \
672
            '-test.shuffle[randomize the execution order of tests and benchmarks (default "off")]:string' \
637
            '-test.testlogfile[write test action log to file (for use only by cmd/go)]:file' \
673
            '-test.testlogfile[write test action log to file (for use only by cmd/go)]:file' \
638
            '-test.timeout[panic test binary after duration d (default 0, timeout disabled)]:d' \
674
            '-test.timeout[panic test binary after duration d (default 0, timeout disabled)]:d' \
639
            '-test.trace[write an execution trace to file]:file' \
675
            '-test.trace[write an execution trace to file]:file' \
Lines 654-669 Link Here
654
            '-coverprofile[write a coverage profile to file]:cover' \
690
            '-coverprofile[write a coverage profile to file]:cover' \
655
            '-cpu[specify a list of GOMAXPROCS values]:cpus' \
691
            '-cpu[specify a list of GOMAXPROCS values]:cpus' \
656
            '-cpuprofile[write a CPU profile to the specified file]:profile' \
692
            '-cpuprofile[write a CPU profile to the specified file]:profile' \
693
            '-failtest[do not start new tests after the first test failure]' \
694
            '-fuzz[run the fuzz test matching the regular expression]:regexp' \
695
            '-fuzztime[run enough iterations of the fuzz target during fuzzing]:t' \
696
            '-fuzzminimizetime[run enough iterations of the fuzz target during each minimization attempt]:t' \
697
            '-json[log verbose output and test results in JSON]' \
698
            '-list[list tests, benchmarks, fuzz tests, or examples matching the regular expression]:regexp' \
657
            '-memprofile[write a memory profile to file]:mem' \
699
            '-memprofile[write a memory profile to file]:mem' \
658
            '-memprofilerate[enable more precise memory profiles]:n' \
700
            '-memprofilerate[enable more precise memory profiles]:n' \
701
            '-mutexprofile[write a mutex contention profile to the specified file]:file:_files' \
659
            '-outputdir[place output files from profiling in output dir]:dir' \
702
            '-outputdir[place output files from profiling in output dir]:dir' \
660
            '-parallel[allow parallel execution of test functions]:n' \
703
            '-parallel[allow parallel execution of test functions]:n' \
661
            '-run[run tests and examples matching the regular expression]:regexp' \
704
            '-run[run tests and examples matching the regular expression]:regexp' \
662
            '-short[tell long-running tests to shorten their run time]' \
705
            '-short[tell long-running tests to shorten their run time]' \
706
            '-shuffle[randomize the execution order of tests and benchmarks]:type:(off on)' \
663
            '-test.-[specify options for test running]:test running options:' \
707
            '-test.-[specify options for test running]:test running options:' \
664
            '-timeout[timeout long running tests]:t' \
708
            '-timeout[timeout long running tests]:t' \
665
            '-trace[write an execution trace to the specified file]:trace' \
709
            '-trace[write an execution trace to the specified file]:trace' \
666
            '-v[verbose output]' \
710
            '-v[verbose output]' \
711
            '-vet[configure the invocation of "go vet" during "go test" to use the comma-separated list of vet checks]:list' \
667
            ${build_flags[@]} \
712
            ${build_flags[@]} \
668
            '-exec[run test binary using xprog]:xprog' \
713
            '-exec[run test binary using xprog]:xprog' \
669
            '-o[compile test binary to named file]:file:_files' \
714
            '-o[compile test binary to named file]:file:_files' \
Lines 983-998 Link Here
983
        esac
1028
        esac
984
        ;;
1029
        ;;
985
1030
1031
      version)
1032
        _arguments \
1033
          '-m[print each executable embedded module version information]' \
1034
          '-v[report unrecognized files]' \
1035
          '*:files:_files'
1036
        ;;
1037
1038
986
      vet)
1039
      vet)
987
        _arguments \
1040
        _arguments \
988
          '-n[print commands that would be executed]' \
1041
          '-n[print commands that would be executed]' \
989
          '-x[prints commands as they are executed]' \
1042
          '-x[prints commands as they are executed]' \
990
          ${build_flags[@]} \
1043
          ${build_flags[@]} \
991
          '*:importpaths:__go_packages'
1044
          '*:importpaths:__go_packages'
992
          ;;
1045
        ;;
1046
1047
      work)
1048
        local -a work_commands
1049
        work_commands=(
1050
        'edit:edit go.work from tools or scripts'
1051
        'init:initialize workspace file'
1052
        'sync:sync workspace build list to modules'
1053
        'use:add modules to workspace file'
1054
        )
1055
1056
        _arguments \
1057
          "1: :{_describe 'command' work_commands}" \
1058
          '*:: :->args'
1059
1060
        case $state in
1061
          args)
1062
            case $words[1] in
1063
              edit)
1064
                _arguments \
1065
                  ${edit_flags[@]} \
1066
                  '*-use[add use directive from the go.work set of module directories]' \
1067
                  '*-dropuse[drop use directive from the go.work set of module directories]' \
1068
                  ':go.work:_path_files -g "go.work"'
1069
                ;;
1070
1071
              init)
1072
                  _arguments \
1073
                    '*:directory: _path_files -/'
1074
                ;;
1075
1076
              sync)
1077
                ;;
1078
1079
              use)
1080
                _arguments \
1081
                  '-r[searches recursively for modules in the argumentdirectories]' \
1082
                  '*:directory: _path_files -/'
1083
                ;;
1084
            esac
1085
            ;;
1086
        esac
1087
        ;;
1088
1089
993
      help)
1090
      help)
994
        local -a topics
1091
        local -a topics
995
        topics=(
1092
        topics=(
1093
        'buildconstraint:build constraints'
996
        'buildmode:build modes'
1094
        'buildmode:build modes'
997
        'c:calling between Go and C'
1095
        'c:calling between Go and C'
998
        'cache:build and test caching'
1096
        'cache:build and test caching'
Lines 1006-1015 Link Here
1006
        'modules:modules, module versions, and more'
1104
        'modules:modules, module versions, and more'
1007
        'module-get:module-aware go get'
1105
        'module-get:module-aware go get'
1008
        'module-auth:module authentication using go.sum'
1106
        'module-auth:module authentication using go.sum'
1009
        'module-private:module configuration for non-public modules'
1010
        'packages:package lists and patterns'
1107
        'packages:package lists and patterns'
1108
        'private:configuration for downloading non-public code'
1011
        'testflag:testing flags'
1109
        'testflag:testing flags'
1012
        'testfunc:testing functions'
1110
        'testfunc:testing functions'
1111
        'vcs:controlling version control with GOVCS'
1013
        )
1112
        )
1014
1113
1015
        _arguments "1: :{_describe 'command' commands -- topics}"
1114
        _arguments "1: :{_describe 'command' commands -- topics}"
(-)zsh-completions-0.32.0/src/_httpie (-2 / +15 lines)
Lines 28-34 Link Here
28
# Description
28
# Description
29
# -----------
29
# -----------
30
#
30
#
31
#  Completion script for httpie 0.7.2  (http://httpie.org)
31
#  Completion script for httpie 3.2.1  (https://httpie.io/)
32
#
32
#
33
# ------------------------------------------------------------------------------
33
# ------------------------------------------------------------------------------
34
# Authors
34
# Authors
Lines 151-162 Link Here
151
_arguments -n -C -s \
151
_arguments -n -C -s \
152
  '(-j --json -f)'{-j,--json}'[Data items from the command line are serialized as a JSON object.]' \
152
  '(-j --json -f)'{-j,--json}'[Data items from the command line are serialized as a JSON object.]' \
153
  '(-f --form -j)'{-f,--form}'[Data items from the command line are serialized as form fields.]' \
153
  '(-f --form -j)'{-f,--form}'[Data items from the command line are serialized as form fields.]' \
154
  '--multipart[Similar to --form, but always sends a multipart/form-data request]' \
155
  '--boundary=[Specify a custom boundary string for multipart/form-data requests]' \
156
  '--raw=[This option allows you to pass raw request data without extra processing]' \
154
  '(-x --compress)'{-x,--compress}'[Content compressed with Deflate algorithm]' \
157
  '(-x --compress)'{-x,--compress}'[Content compressed with Deflate algorithm]' \
155
  '--pretty=[Controls output processing.]:output format:(all colors format none)' \
158
  '--pretty=[Controls output processing.]:output format:(all colors format none)' \
156
  '(-s --style)'{-s,--style}'=[Output coloring style]:STYLE:(autumn borland bw colorful default emacs friendly fruity manni monokai murphy native pastie perldoc ttr solarized tango trac vim vs)' \
159
  '(-s --style)'{-s,--style}'=[Output coloring style]:STYLE:(autumn borland bw colorful default emacs friendly fruity manni monokai murphy native pastie perldoc ttr solarized tango trac vim vs)' \
160
  '--unsorted[Disables all sorting while formatting output]' \
161
  '--sorted[Re-enables all sorting options while formatting output]' \
162
  '--response-charset=[Override the response encoding for terminal display purposes]' \
163
  '--response-mime=[Override the response mime type for coloring and formatting for the terminal]' \
164
  '--format-options=[Controls output formatting]' \
157
  '(-p --print)'{-p,--print}'=[String specifying what the output should contain]:print flags:_httpie_printflags' \
165
  '(-p --print)'{-p,--print}'=[String specifying what the output should contain]:print flags:_httpie_printflags' \
158
  '(-v --verbose)'{-v,--verbose}'[Print the whole request as well as the response.]' \
166
  '(-v --verbose)'{-v,--verbose}'[Print the whole request as well as the response.]' \
159
  '(-p -h --headers)'{-h,--headers}'[Print only the response headers.]' \
167
  '(-p -h --headers)'{-h,--headers}'[Print only the response headers.]' \
168
  '(-p -m --meta)'{-m,--meta}'[Print only the response metadata]' \
160
  '(-p -b --body)'{-b,--body}'[Print only the response body.]' \
169
  '(-p -b --body)'{-b,--body}'[Print only the response body.]' \
161
  '--all[By default, only the final request/response is shown]' \
170
  '--all[By default, only the final request/response is shown]' \
162
  '(--P --history-print)'{-P,--history-print}'=[The same as --print but applies only to intermediary requests/response]:print flags:_httpie_printflags' \
171
  '(--P --history-print)'{-P,--history-print}'=[The same as --print but applies only to intermediary requests/response]:print flags:_httpie_printflags' \
Lines 164-169 Link Here
164
  '(-o --output)'{-o,--output}'=[Save output to FILE.]:output file:_files' \
173
  '(-o --output)'{-o,--output}'=[Save output to FILE.]:output file:_files' \
165
  '(-d --download)'{-d,--download}'=[Do not print the response body to stdout.]' \
174
  '(-d --download)'{-d,--download}'=[Do not print the response body to stdout.]' \
166
  '(-c --continue)'{-c,--continue}'[Resume an interrupted download.]' \
175
  '(-c --continue)'{-c,--continue}'[Resume an interrupted download.]' \
176
  '(-q --quiet)'{-q,--quiet}'[Do not print to stdout or stderr, except for errors and warnings when provided once]' \
167
  '(--session-read-only)--session=[Create, or reuse and update a session.]:session name (or path)' \
177
  '(--session-read-only)--session=[Create, or reuse and update a session.]:session name (or path)' \
168
  '(--session)--session-read-only=[Create or read a session without updating it form the request/response exchange.]:session name (or path)' \
178
  '(--session)--session-read-only=[Create or read a session without updating it form the request/response exchange.]:session name (or path)' \
169
  '(-a --auth)'{-a,--auth}'=[If only the username is provided (-a username)]:USER\:PASS' \
179
  '(-a --auth)'{-a,--auth}'=[If only the username is provided (-a username)]:USER\:PASS' \
Lines 176-189 Link Here
176
  '--max-headers=[The maximum number of response headers to be read]:number:' \
186
  '--max-headers=[The maximum number of response headers to be read]:number:' \
177
  "--verify=[Enable or disable verification of ssl certificates.]:verify certificate:(yes no)" \
187
  "--verify=[Enable or disable verification of ssl certificates.]:verify certificate:(yes no)" \
178
  '--ssl=[The desired protocol version to use]:ssl version:(ssl2.3 tls1 tls1.1 tls1.2)' \
188
  '--ssl=[The desired protocol version to use]:ssl version:(ssl2.3 tls1 tls1.1 tls1.2)' \
189
  '--ciphers=[A string in the OpenSSL cipher list format]' \
179
  '--cert=[Specify a local cert to use as client side SSL certificate]:cert:_files' \
190
  '--cert=[Specify a local cert to use as client side SSL certificate]:cert:_files' \
180
  '--cert-key=[Specify the private to key to use with SSL]:cert key:_files' \
191
  '--cert-key=[Specify the private to key to use with SSL]:cert key:_files' \
181
  '--allow-redirects[Set this flag if full redirects are allowed (e.g. re-POST-ing of data at new ``Location``)]' \
192
  '--cert-key-pass=[The passphrase to be used to with the given private key]' \
182
  '--timeout=[Float describes the timeout of the request (Use socket.setdefaulttimeout() as fallback).]:timeout (seconds)' \
193
  '--timeout=[Float describes the timeout of the request (Use socket.setdefaulttimeout() as fallback).]:timeout (seconds)' \
183
  '--check-status[This flag instructs HTTPie to also check the HTTP status code and exit with an error if the status indicates one.]' \
194
  '--check-status[This flag instructs HTTPie to also check the HTTP status code and exit with an error if the status indicates one.]' \
184
  '--path-as-is[Bypass dot segment URL squashing]' \
195
  '--path-as-is[Bypass dot segment URL squashing]' \
196
  '--chunked[Enable streaming via chunked transfer encoding]' \
185
  '(-I --ignore-stdin)'{-I,--ignore-stdin}'[Do not attempt to read stdin.]' \
197
  '(-I --ignore-stdin)'{-I,--ignore-stdin}'[Do not attempt to read stdin.]' \
186
  '(- *)--help[show help message.]' \
198
  '(- *)--help[show help message.]' \
199
  '(- *)--manual[show the full manual]' \
187
  "(- *)--version[show program's version number and exit.]" \
200
  "(- *)--version[show program's version number and exit.]" \
188
  '--traceback[Prints exception traceback should one occur.]' \
201
  '--traceback[Prints exception traceback should one occur.]' \
189
  '--default-scheme=[The default scheme to use if not specified in the URL]:scheme:' \
202
  '--default-scheme=[The default scheme to use if not specified in the URL]:scheme:' \
(-)zsh-completions-0.32.0/src/_jmeter (-1 / +10 lines)
Lines 17-22 Link Here
17
17
18
18
19
_arguments \
19
_arguments \
20
  '(- 1 *)--?[print command line options and exit]' \
20
  '(- 1 *)'{-h,--help}'[print usage information and exit]' \
21
  '(- 1 *)'{-h,--help}'[print usage information and exit]' \
21
  '(- 1 *)'{-v,--version}'[print the version information and exit]' \
22
  '(- 1 *)'{-v,--version}'[print the version information and exit]' \
22
  {-p,--propfile}'[the jmeter property file to use]:properties file:_files -g "*.properties"' \
23
  {-p,--propfile}'[the jmeter property file to use]:properties file:_files -g "*.properties"' \
Lines 24-44 Link Here
24
  {-t,--testfile}'[the jmeter test plan file to run]:JMeter test plan file:_files -g "*.jmx"' \
25
  {-t,--testfile}'[the jmeter test plan file to run]:JMeter test plan file:_files -g "*.jmx"' \
25
  {-j,--jmeterlogfile}'[the jmeter log file]: :_files -g "*.log"' \
26
  {-j,--jmeterlogfile}'[the jmeter log file]: :_files -g "*.log"' \
26
  {-l,--logfile}'[the file to log samples to]: :_files -g "*.jtl"' \
27
  {-l,--logfile}'[the file to log samples to]: :_files -g "*.jtl"' \
28
  {-i,--jmeterlogconf}'[jmeter logging configuration file]: :_files -g "*.xml"' \
29
  {-j,--jmeterlogfile}'[jmeter run file]: :_files -g "*.log"' \
27
  {-n,--nongui}'[run JMeter in nongui mode]' \
30
  {-n,--nongui}'[run JMeter in nongui mode]' \
28
  {-s,--server}'[run the JMeter server]' \
31
  {-s,--server}'[run the JMeter server]' \
32
  {-E,--proxyScheme}'[set a proxy scheme to use for the proxy server]:scheme' \
29
  {-H,--proxyHost}'[set a proxy server for JMeter to use]: :_hosts' \
33
  {-H,--proxyHost}'[set a proxy server for JMeter to use]: :_hosts' \
30
  {-P,--proxyPort}'[set proxy server port for JMeter to use]:number' \
34
  {-P,--proxyPort}'[set proxy server port for JMeter to use]:number' \
35
  {-N,--nonProxyHosts}'[set non proxy host list]:host' \
31
  {-u,--username}'[set username for proxy server that JMeter is to use]:username:_users' \
36
  {-u,--username}'[set username for proxy server that JMeter is to use]:username:_users' \
32
  {-a,--password}'[set password for proxy server that JMeter is to use]:password' \
37
  {-a,--password}'[set password for proxy server that JMeter is to use]:password' \
33
  {-J-,--jmeterproperty}'[define additional JMeter properties]:argument=value' \
38
  {-J-,--jmeterproperty}'[define additional JMeter properties]:argument=value' \
34
  {-G-,--globalproperty}'[define Global properties (sent to servers)]:argument=value' \
39
  {-G-,--globalproperty}'[define Global properties (sent to servers)]:argument=value' \
35
  {-D-,--systemproperty}'[define additional System properties]:argument=value' \
40
  {-D-,--systemproperty}'[define additional System properties]:argument=value' \
36
  {-S,--systemPropertyFile}'[a property file to be added as System properties]:properties file:_files -g "*.properties"' \
41
  {-S,--systemPropertyFile}'[a property file to be added as System properties]:properties file:_files -g "*.properties"' \
42
  {-f,--forceDeleteResultFile}'[force delete existing results files and web report folder]' \
37
  {-L,--loglevel}'[define loglevel]:[category=]level' \
43
  {-L,--loglevel}'[define loglevel]:[category=]level' \
38
  {-r,--runremote}'[start remote servers (as defined by the jmeter property remote_hosts)]' \
44
  {-r,--runremote}'[start remote servers (as defined by the jmeter property remote_hosts)]' \
39
  {-R,--remotestart}'[start these remote servers (overrides remote_hosts)]:remote servers list' \
45
  {-R,--remotestart}'[start these remote servers (overrides remote_hosts)]:remote servers list' \
40
  {-d,--homedir}'[the JMeter home directory to use]: :_files -/' \
46
  {-d,--homedir}'[the JMeter home directory to use]: :_files -/' \
41
  {-X,--remoteexit}'[exit the remote servers at end of test (non-GUI)]'
47
  {-X,--remoteexit}'[exit the remote servers at end of test (non-GUI)]' \
48
  {-g,--removeonly}'[generate report dashboard only, from a test results file]: :_files' \
49
  {-e,--reportatendofloadtests}'[generate report dashboard after load test]' \
50
  {-o,--reportoutputfolder}'[output folder for report dashboard]: :_files -/'
42
51
43
# Local Variables:
52
# Local Variables:
44
# mode: Shell-Script
53
# mode: Shell-Script
(-)zsh-completions-0.32.0/src/_jonas (-1 / +1 lines)
Lines 70-76 Link Here
70
          '-username[set the username when authentication is required]: :_users' \
70
          '-username[set the username when authentication is required]: :_users' \
71
          '-password[set the password when authentication is required]:password' \
71
          '-password[set the password when authentication is required]:password' \
72
          '-registry[set the registry URL]: :_urls' \
72
          '-registry[set the registry URL]: :_urls' \
73
          '-protocol[set the protocol name]:protocol:((jrmp\:JRE\ implementation\ of\ RMI\ on\ the\ JRMP\ protocol\ \(default\) iiop\:JacORB\ implementation\ of\ RMI\ over\ the\ IIOP\ protocol irmi\:Oracle\ JRE\ independant\ implementation\ of\ RMI))' \
73
          '-protocol[set the protocol name]:protocol:((jrmp\:JRE\ implementation\ of\ RMI\ on\ the\ JRMP\ protocol\ \(default\) iiop\:JacORB\ implementation\ of\ RMI\ over\ the\ IIOP\ protocol irmi\:Oracle\ JRE\ independent\ implementation\ of\ RMI))' \
74
          '-a[deploy an application from a given filepath on the current server, or on another target in the domain if the current server is a master]:Java application archive:_files -g "*.(j|w|r|e)ar"' \
74
          '-a[deploy an application from a given filepath on the current server, or on another target in the domain if the current server is a master]:Java application archive:_files -g "*.(j|w|r|e)ar"' \
75
          '-r[undeploy a previously deployed application from the current server or from the specified target if the current server is a master]:Java application archive:_files -g "*.(j|w|r|e)ar"' \
75
          '-r[undeploy a previously deployed application from the current server or from the specified target if the current server is a master]:Java application archive:_files -g "*.(j|w|r|e)ar"' \
76
          '-gc[run the garbage collector on the current JOnAS server]' \
76
          '-gc[run the garbage collector on the current JOnAS server]' \
(-)zsh-completions-0.32.0/src/_knife (-114 / +200 lines)
Lines 26-32 Link Here
26
#
26
#
27
#  Completion script for Chef's knife (http://www.opscode.com/chef).
27
#  Completion script for Chef's knife (http://www.opscode.com/chef).
28
#
28
#
29
#  Source: https://github.com/robbyrussell/oh-my-zsh/tree/master/plugins/knife
29
#  Source: https://github.com/ohmyzsh/ohmyzsh/blob/22fed4f/plugins/knife/_knife
30
#
30
#
31
# ------------------------------------------------------------------------------
31
# ------------------------------------------------------------------------------
32
# Authors
32
# Authors
Lines 38-43 Link Here
38
# ------------------------------------------------------------------------------
38
# ------------------------------------------------------------------------------
39
39
40
40
41
# You can override the path to knife.rb and your cookbooks by setting
42
# KNIFE_CONF_PATH=/path/to/my/.chef/knife.rb
43
# KNIFE_COOKBOOK_PATH=/path/to/my/chef/cookbooks
44
# If you want your local cookbooks path to be calculated relative to where you are then
45
# set the below option
46
# KNIFE_RELATIVE_PATH=true
47
# Read around where these are used for more detail.
48
41
# knife has a very special syntax, some example calls are:
49
# knife has a very special syntax, some example calls are:
42
# knife status
50
# knife status
43
# knife cookbook list
51
# knife cookbook list
Lines 48-230 Link Here
48
56
49
# The -Q switch in compadd allow for completions of things like "data bag" without having to go through two rounds of completion and avoids zsh inserting a \ for escaping spaces
57
# The -Q switch in compadd allow for completions of things like "data bag" without having to go through two rounds of completion and avoids zsh inserting a \ for escaping spaces
50
_knife() {
58
_knife() {
51
  local curcontext="$curcontext" state line
52
  typeset -A opt_args
53
54
  # These flags should be available everywhere according to man knife
59
  # These flags should be available everywhere according to man knife
55
  knife_general_flags=( --help --server-url --key --config --editor --format --log_level --logfile --no-editor --user --print-after --version --yes --environment )
60
  local -a knife_general_flags; knife_general_flags=(--help --server-url --key --config --editor --format --log_level --logfile --no-editor --user --print-after --version --yes)
56
61
57
  cloudproviders=(bluebox ec2 rackspace slicehost terremark)
62
  local curcontext="$curcontext" state line
63
  typeset -A opt_args
64
  local -a cloudproviders; cloudproviders=(bluebox ec2 rackspace slicehost terremark)
58
  _arguments \
65
  _arguments \
59
    '1: :->knifecmd'\
66
    '1: :->knifecmd' \
60
    '2: :->knifesubcmd'\
67
    '2: :->knifesubcmd' \
61
    '3: :->knifesubcmd2' \
68
    '3: :->knifesubcmd2' \
62
    '4: :->knifesubcmd3' \
69
    '4: :->knifesubcmd3' \
63
    '5: :->knifesubcmd4' \
70
    '5: :->knifesubcmd4' \
64
    '6: :->knifesubcmd5'
71
    '6: :->knifesubcmd5'
65
  
72
66
  case $state in
73
  case $state in
67
  knifecmd)
74
  knifecmd)
68
    compadd -Q "$@" bootstrap client configure cookbook "cookbook site" "data bag" diff environment user exec index node recipe role search ssh status windows $cloudproviders
75
    compadd -Q "$@" bootstrap client configure cookbook "cookbook site" "data bag" diff exec environment user index node recipe role search solo ssh status upload vault windows "$cloudproviders[@]"
69
  ;;
76
    ;;
70
  knifesubcmd)
77
  knifesubcmd)
71
    case $words[2] in
78
    case $words[2] in
72
    (bluebox|ec2|rackspace|slicehost|terremark)
79
    bluebox|ec2|rackspace|slicehost|terremark)
73
      compadd "$@" server images
80
      compadd "$@" server images
74
    ;;
81
      ;;
75
    client)
82
    client)
76
      compadd -Q "$@" "bulk delete" list create show delete edit reregister
83
      compadd -Q "$@" "bulk delete" list create show delete edit reregister
77
    ;;
84
      ;;
78
    configure)
85
    configure)
79
      compadd "$@" client
86
      compadd "$@" client
80
    ;;
87
      ;;
81
    cookbook)
88
    cookbook)
82
      compadd -Q "$@" test list create download delete "metadata from" show "bulk delete" metadata upload
89
      compadd -Q "$@" test list create download delete "metadata from" show "bulk delete" metadata upload
83
    ;;
90
      ;;
84
    diff)
91
    diff)
85
      _arguments '*:file or directory:_files -g "*.(rb|json)"'
92
      _arguments '*:file or directory:_files -g "*"'
86
    ;;
93
      ;;
87
    environment)
94
    environment)
88
      compadd -Q "$@" create delete edit "from file" list show
95
      compadd -Q "$@" list create delete edit show "from file"
89
    ;;
96
      ;;
90
    user)
97
    user)
91
      compadd -Q "$@" create delete edit list reregister show
98
      compadd -Q "$@" create delete edit list reregister show
92
    ;;
99
      ;;
93
    node)
100
    node)
94
     compadd -Q "$@" "from file" create show edit delete list run_list "bulk delete"
101
      compadd -Q "$@" "from file" create show edit delete list run_list "bulk delete"
95
    ;;
102
      ;;
96
    recipe)
103
    recipe)
97
     compadd "$@" list
104
      compadd "$@" list
98
    ;;
105
      ;;
99
    role)
106
    role)
100
      compadd -Q "$@" "bulk delete" create delete edit "from file" list show
107
      compadd -Q "$@" "bulk delete" create delete edit "from file" list show
101
    ;; 
108
      ;;
109
    solo)
110
      compadd "$@" bootstrap clean cook init prepare
111
      ;;
112
    upload)
113
      _arguments '*:file or directory:_files -g "*"'
114
      ;;
115
    vault)
116
      compadd -Q "$@" create decrypt delete edit remove "rotate all keys" "rotate keys" show update
117
      ;;
102
    windows)
118
    windows)
103
      compadd "$@" bootstrap
119
      compadd "$@" bootstrap
104
    ;;
120
      ;;
105
    *)
121
    *)
106
    _arguments '2:Subsubcommands:($(_knife_options1))'
122
      _arguments '2:Subsubcommands:($(_knife_options1))'
123
      ;;
107
    esac
124
    esac
108
   ;;
125
    ;;
109
   knifesubcmd2)
126
  knifesubcmd2)
110
    case $words[3] in
127
    case $words[3] in
111
     server)
128
    server)
112
      compadd "$@" list create delete
129
      compadd "$@" list create delete
113
    ;;
130
      ;;
114
     images)
131
    images)
115
      compadd "$@" list
132
      compadd "$@" list
116
    ;;
133
      ;;
117
     site)
134
    site)
118
      compadd "$@" vendor show share search download list unshare
135
      compadd "$@" vendor show share search download list unshare
119
    ;;
136
      ;;
120
     (show|delete|edit)
137
    show|delete|edit|update)
121
     _arguments '3:Subsubcommands:($(_chef_$words[2]s_remote))'
138
      _arguments '3:Subsubcommands:($(_knife_list_remote "$words[2]"))'
122
    ;;
139
      ;;
123
    (upload|test)
140
    upload|test)
124
     _arguments '3:Subsubcommands:($(_chef_$words[2]s_local) --all)'
141
      _arguments '3:Subsubcommands:($(_call_function - "_knife_list_local_$words[2]s") --all)'
125
    ;;
142
      ;;
126
    list)
143
    list)
127
     compadd -a "$@" knife_general_flags
144
      compadd -a "$@" knife_general_flags
128
    ;;
145
      ;;
129
    bag)
146
    bag)
130
      compadd -Q "$@" show edit list "from file" create delete
147
      compadd -Q "$@" show edit list "from file" create delete
131
    ;;
148
      ;;
149
    bootstrap|clean|cook|prepare)
150
      compadd "$@" nodes/*.json(N:t:r)
151
      ;;
152
    init)
153
      compadd "$@" ./*(/N:t)
154
      ;;
132
    *)
155
    *)
133
      _arguments '3:Subsubcommands:($(_knife_options2))'
156
      _arguments '3:Subsubcommands:($(_knife_options2))'
157
      ;;
134
    esac
158
    esac
135
   ;;
136
   knifesubcmd3)
137
     case $words[3] in
138
      show)
139
       case $words[2] in
140
       cookbook)
141
          versioncomp=1
142
          _arguments '4:Cookbookversions:($(_cookbook_versions) latest)'
143
       ;;
144
       (node|client|role|environment)
145
         compadd "$@" --attribute
146
       esac
147
     esac
148
     case $words[4] in
149
     (show|edit)
150
     _arguments '4:Subsubsubcommands:($(_chef_$words[2]_$words[3]s_remote))'
151
    ;;
159
    ;;
152
     file)
160
  knifesubcmd3)
153
     _arguments '*:file or directory:_files -g "*.(rb|json)"'
161
    case "$words[3]" in
162
    show)
163
      case "$words[2]" in
164
      cookbook)
165
        versioncomp=1
166
        _arguments '4:Cookbookversions:($(_knife_cookbook_versions) latest)'
167
        ;;
168
      node|client|role)
169
        compadd "$@" --attribute
170
        ;;
171
      vault)
172
        _arguments '4:Keys:($(_knife_list_remote "$words[2]" "$words[4]"))'
173
        ;;
174
      esac
175
      ;;
176
    update)
177
      case "$words[2]" in
178
      vault)
179
        _arguments '4:Keys:($(_knife_list_remote "$words[2]" "$words[4]"))'
180
        ;;
181
      esac
182
      ;;
183
    esac
184
    case "$words[4]" in
185
    show|edit)
186
      _arguments '4:Subsubsubcommands:($(_knife_list_remote "$words[2]" "$words[3]"))'
187
      ;;
188
    file)
189
      case "$words[2]" in
190
      environment)
191
        _arguments '*:files:_path_files -g "*.(rb|json)" -W "$(_knife_root)/environments"'
192
        ;;
193
      node)
194
        _arguments '*:files:_path_files -g "*.(rb|json)" -W "$(_knife_root)/nodes"'
195
        ;;
196
      role)
197
        _arguments '*:files:_path_files -g "*.(rb|json)" -W "$(_knife_root)/roles"'
198
        ;;
199
      *)
200
        _arguments '*:Subsubcommands:($(_knife_options3))'
201
        ;;
202
      esac
203
      ;;
204
    list)
205
      compadd -a "$@" knife_general_flags
206
      ;;
207
    *)
208
      _arguments '*:Subsubcommands:($(_knife_options3))'
209
      ;;
210
    esac
154
    ;;
211
    ;;
155
      list)
212
  knifesubcmd4)
156
     compadd -a "$@" knife_general_flags
213
    if ((versioncomp > 0)); then
214
      compadd "$@" attributes definitions files libraries providers recipes resources templates
215
    else
216
      case "$words[5]" in
217
      file)
218
        _arguments '*:directory:_path_files -/ -W "$(_knife_root)/data_bags" -qS \ '
219
        ;;
220
      *) _arguments '*:Subsubcommands:($(_knife_options2))' ;;
221
      esac
222
    fi
157
    ;;
223
    ;;
158
        *)
224
  knifesubcmd5)
159
       _arguments '*:Subsubcommands:($(_knife_options3))'
225
    case "$words[5]" in
226
    file)
227
      _arguments '*:files:_path_files -g "*.json" -W "$(_knife_root)/data_bags/$words[6]"'
228
      ;;
229
    *)
230
      _arguments '*:Subsubcommands:($(_knife_options3))'
231
      ;;
160
    esac
232
    esac
161
    ;;
233
    ;;
162
    knifesubcmd4)
234
  esac
163
      if (( versioncomp > 0 )); then
164
        compadd "$@" attributes definitions files libraries providers recipes resources templates
165
      else
166
       _arguments '*:Subsubcommands:($(_knife_options2))'
167
      fi
168
    ;; 
169
    knifesubcmd5) 
170
      _arguments '*:Subsubcommands:($(_knife_options3))'
171
   esac
172
}
235
}
173
236
174
# Helper functions to provide the argument completion for several depths of commands
237
# Helper functions to provide the argument completion for several depths of commands
175
_knife_options1() {
238
_knife_options1() {
176
 ( for line in $( knife $words[2] --help | grep -v "^knife" ); do echo $line | grep "\-\-"; done )
239
  local line
240
  for line in $(_call_program commands knife "$words[2]" --help | grep -v "^knife"); do
241
    echo $line | grep "\-\-"
242
  done
177
}
243
}
178
244
179
_knife_options2() {
245
_knife_options2() {
180
 ( for line in $( knife $words[2] $words[3] --help | grep -v "^knife" ); do echo $line | grep "\-\-"; done )
246
  local line
247
  for line in $(_call_program commands knife "$words[2]" "$words[3]" --help | grep -v "^knife"); do
248
    echo $line | grep "\-\-"
249
  done
181
}
250
}
182
251
183
_knife_options3() {
252
_knife_options3() {
184
 ( for line in $( knife $words[2] $words[3] $words[4] --help | grep -v "^knife" ); do echo $line | grep "\-\-"; done )
253
  local line
254
  for line in $(_call_program commands knife "$words[2]" "$words[3]" "$words[4]" --help | grep -v "^knife"); do
255
    echo $line | grep "\-\-"
256
  done
185
}
257
}
186
258
187
# The chef_x_remote functions use knife to get a list of objects of type x on the server
259
# get a list of objects of type x on the server
188
_chef_roles_remote() {
260
_knife_list_remote() {
189
 (knife role list | awk '{print $1}')
261
  case "$*" in
262
    role|client|node|cookbook|"cookbook site"|"data bag"|environment|user|vault)
263
      _call_program commands knife "$@" list --format json \
264
        | grep \" \
265
        | awk '{print $1}' \
266
        | awk -F"," '{print $1}' \
267
        | awk -F"\"" '{print $2}'
268
      ;;
269
    "vault "*)
270
      _call_program commands knife vault show "$2" --format json \
271
        | grep \" \
272
        | awk '{print $1}' \
273
        | awk -F"," '{print $1}' \
274
        | awk -F"\"" '{print $2}'
275
      ;;
276
  esac
190
}
277
}
191
278
192
_chef_clients_remote() {
279
# The chef_x_local functions use the knife config to find the paths of relevant objects x to be uploaded to the server
193
 (knife client list | awk '{print $1}')
280
_knife_list_local_cookbooks() {
194
}
281
  if [ $KNIFE_RELATIVE_PATH ]; then
282
    local cookbook_path="$(_knife_root)/cookbooks"
283
  else
284
    local knife_rb="${KNIFE_CONF_PATH:-${HOME}/.chef/knife.rb}"
285
    if [ -f ./.chef/knife.rb ]; then
286
      knife_rb="./.chef/knife.rb"
287
    fi
288
    local cookbook_path="${KNIFE_COOKBOOK_PATH:-$(grep -s cookbook_path "$knife_rb" | awk 'BEGIN {FS = "[" }; {print $2}' | sed 's/\,//g' | sed "s/'//g" | sed 's/\(.*\)]/\1/' | cut -d '"' -f2)}"
289
  fi
195
290
196
_chef_nodes_remote() {
291
  local i
197
 (knife node list | awk '{print $1}')
292
  for i in $cookbook_path; do
293
    ls $i
294
  done
198
}
295
}
199
296
200
_chef_cookbooks_remote() {
297
# This function extracts the available cookbook versions on the chef server
201
 (knife cookbook list | awk '{print $1}')
298
_knife_cookbook_versions() {
299
  _call_program commands knife cookbook show "$words[4]" \
300
    | grep -v "$words[4]" \
301
    | grep -v -E '\]|\[|\{|\}' \
302
    | sed 's/ //g' \
303
    | sed 's/"//g'
202
}
304
}
203
305
204
_chef_sitecookbooks_remote() {
306
# Searches up from current directory to find the closest folder that has a .chef folder
205
 (knife cookbook site list | awk '{print $1}')
307
# Useful for the knife upload/from file commands
206
}
308
_knife_root() {
207
309
  local directory="$PWD"
208
_chef_data_bags_remote() {
310
  while [ $directory != '/' ]; do
209
 (knife data bag list | awk '{print $1}')
311
    test -e "$directory/.chef" && echo "$directory" && return
210
}
312
    directory="${directory:h}"
211
313
  done
212
_chef_environments_remote() {
213
 (knife environment list | awk '{print $1}')
214
}
215
216
_chef_users_remote() {
217
 (knife user list | awk '{print $1}')
218
}
219
220
# The chef_x_local functions use the knife config to find the paths of relevant objects x to be uploaded to the server
221
_chef_cookbooks_local() {
222
 (for i in $( grep cookbook_path $HOME/.chef/knife.rb | awk 'BEGIN {FS = "[" }; {print $2}' | sed 's/\,//g' | sed "s/'//g" | sed 's/\(.*\)]/\1/'  | cut -d '"' -f2 ); do ls $i; done)
223
}
224
225
# This function extracts the available cookbook versions on the chef server
226
_cookbook_versions() {
227
  (knife cookbook show $words[4] | grep -v $words[4] | grep -v -E '\]|\[|\{|\}' | sed 's/ //g' | sed 's/"//g')
228
}
314
}
229
315
230
_knife "$@"
316
_knife "$@"
(-)zsh-completions-0.32.0/src/_mix (-5 / +1 lines)
Lines 227-237 Link Here
227
         _arguments ':feature:__task_list'
227
         _arguments ':feature:__task_list'
228
         return
228
         return
229
      ;;
229
      ;;
230
      (test)
230
      (test|format|run)
231
         _arguments ':PATH:_files'
232
         return
233
      ;;
234
      (format)
235
         _arguments ':PATH:_files'
231
         _arguments ':PATH:_files'
236
         return
232
         return
237
      ;;
233
      ;;
(-)zsh-completions-0.32.0/src/_nano (-51 / +71 lines)
Lines 1-53 Link Here
1
#compdef nano
1
#compdef nano
2
2
local curcontext="$curcontext" state line
3
local curcontext="$curcontext" state line
3
typeset -A opt_args
4
local -i ret=1
4
_arguments -s -C \
5
5
  '(-)'{-A,--smarthome}'[Enable smart home key]'\
6
_arguments -s -S -C \
6
  {-B,--backup}'[Save backups of existing files]'\
7
  '(-)'{-A,--smarthome}'[enable smart home key]' \
7
  {-C+,--backupdir=}'[Directory for saving unique backup files]:dir:_dirs'\
8
  '(-B --backup)'{-B,--backup}'[save backups of existing files]' \
8
  {-D,--boldtext}'[Use bold instead of reverse video text]'\
9
  '(-C --backupdir)'{-C+,--backupdir=}'[specify directory for saving unique backup files]:directory:_directories' \
9
  {-E,--tabstospaces}'[Convert typed tabs to spaces]'\
10
  '(-D --boldtext)'{-D,--boldtext}'[use bold instead of reverse video text]' \
10
  {-F,--multibuffer}'[Read a file into a new buffer by default]'\
11
  '(-E --tabstospaces)'{-E,--tabstospaces}'[convert typed tabs to spaces]' \
11
  {-G,--locking}'[Use vim-style lock files]'\
12
  '(-F --multibuffer)'{-F,--multibuffer}'[read a file into a new buffer by default]' \
12
  {-H,--historylog}'[Log & read search replace string history]'\
13
  '(-G --locking)'{-G,--locking}'[use vim-style lock files]' \
13
  {-I,--ignorercfiles}'[Do not look at nanorc files]'\
14
  '(-H --historylog)'{-H,--historylog}'[log & read search replace string history]' \
14
  {-J+,--guidestripe=}'[Show a guiding bar at this column]:number'\
15
  '(-I --ignorercfiles)'{-I,--ignorercfiles}"[don't look at nanorc files]" \
15
  {-K,--rawsequences}'[Fix numeric keypad key confusion problem]'\
16
  '(-J --guidestripe)'{-J+,--guidestripe=}'[show a guide bar at specified column]:number' \
16
  {-L,--nonewlines}'[Do not add an automatic newline]'\
17
  '(-K --rawsequences)'{-K,--rawsequences}'[fix numeric keypad key confusion problem]' \
17
  {-M,--trimblanks}'[Trim tail spaces when hard-wrapping]'\
18
  '(-L --nonewlines)'{-L,--nonewlines}"[don't add an automatic newline]" \
18
  {-N,--noconvert}'[Do not convert files from DOS/Mac format]'\
19
  '(-M --trimblanks)'{-M,--trimblanks}'[trim trailing spaces when hard-wrapping]' \
19
  {-P,--positionlog}'[Log & read location of cursor position]'\
20
  '(-N --noconvert -u --unix)'{-N,--noconvert}"[don't convert files from DOS/Mac format]" \
20
  {-Q+,--quotestr=}'[Regular expression to match quoting]:str'\
21
  '(-O --bookstyle)'{-O,--bookstyle}'[leading whitespace means new paragraph]' \
21
  {-R,--restricted}'[Restricted mode]'\
22
  '(-P --positionlog)'{-P,--positionlog}'[log & read location of cursor position]' \
22
  {-T+,--tabsize=}'[Set width of a tab to cols columns]:init'\
23
  '(-Q --quotestr)'{-Q+,--quotestr=}'[specify regular expression to match quoted parts of lines]:regex [^([ \t]*([!#%\:;>|}]|//))+]' \
23
  {-U,--quickblank}'[Do quick statusbar blanking]'\
24
  '(-R --restricted)'{-R,--restricted}'[restricted mode]' \
24
  '(- *)'{-V,--version}'[Print version information and exit]'\
25
  '(-S --softwrap)'{-S,--softwrap}'[display overly long lines on multiple rows]' \
25
  {-W,--wordbounds}'[Detect word boundaries more accurately]'\
26
  '(-T --tabsize)'{-T+,--tabsize=}'[set width of a tab]:columns [8]' \
26
  {-X+,--wordchars=}'[Which other characters are word parts]:str'\
27
  '(-U --quickblank -c --constantshow -_ --minibar)'{-U,--quickblank}'[do quick statusbar blanking]' \
27
  {-Y+,--syntax=}'[Syntax definition to use for coloring]'\
28
  '(- *)'{-V,--version}'[print version information and exit]' \
28
  {-Z,--zap}'[Let Bsp and Del erase a marked region]'\
29
  '(-W --wordbounds -X --wordchars)'{-W,--wordbounds}'[detect word boundaries more accurately]' \
29
  {-a,--atblanks}'[When soft-wrapping, do it at whitespace]'\
30
  '(-X --wordchars -W --wordbounds)'{-X+,--wordchars=}'[specify which other characters are word parts]:string' \
30
  {-b,--breaklonglines}'[Automatically hard-wrap overlong lines]'\
31
  '(-Y --syntax=)'{-Y+,--syntax=}'[syntax definition to use for coloring]:value' \
31
  {-c,--constantshow}'[Constantly show cursor position]'\
32
  '(-Z --zap)'{-Z,--zap}'[let backspace and delete erase a marked region]' \
32
  {-d,--rebinddelete}'[Fix Backspace/Delete confusion problem]'\
33
  '(-a --atblanks)'{-a,--atblanks}'[when soft-wrapping, do it at whitespace]' \
33
  {-e,--emptyline}'[Keep the line below the title bar empty]'\
34
  '(-b --breaklonglines -w --nowrap)'{-b,--breaklonglines}'[automatically hard-wrap overlong lines]' \
34
  {-f,--rcfile=}'[Use only this file for configuring nano]:file:_files'\
35
  '(-c --constantshow -U --quickblank)'{-c,--constantshow}'[show cursor position constantly]' \
35
  {-g,--showcursor}'[Show cursor in file browser & help text]'\
36
  '(-d --rebinddelete)'{-d,--rebinddelete}'[fix Backspace/Delete confusion problem]' \
36
  '(- *)'{-h,--help}'[Show help text and exit]'\
37
  '(-e --emptyline)'{-e,--emptyline}'[keep the line below the title bar empty]' \
37
  {-i,--autoindent}'[Automatically indent new lines]'\
38
  '(-f --rcfile)'{-f,--rcfile=}'[Use only specified file for configuring nano]:file:_files' \
38
  {-j,--jumpyscrolling}'[Scroll per half-screen, not per line]'\
39
  '(-g --showcursor)'{-g,--showcursor}'[show cursor in file browser & help text]' \
39
  {-k,--cutfromcursor}'[Cut from cursor to end of line]'\
40
  '(- *)'{-h,--help}'[show help text and exit]' \
40
  {-l,--linenumbers}'[Show line numbers in front of the text]'\
41
  '(-i --autoindent)'{-i,--autoindent}'[automatically indent new lines]' \
41
  {-m,--mouse}'[Enable the use of the mouse]'\
42
  '(-j --jumpyscrolling)'{-j,--jumpyscrolling}'[scroll by half-screen, not by line]' \
42
  {-n,--noread}'[Do not read the file (only write it)]'\
43
  '(-k --cutfromcursor)'{-k,--cutfromcursor}'[cut from cursor to end of line]' \
43
  {-o+,--operatingdir=}'[Set operating directory]:dir:_dirs'\
44
  '(-l --linenumbers)'{-l,--linenumbers}'[show line numbers in front of the text]' \
44
  {-p,--preserve}'[Preserve XON (^Q) and XOFF (^S) keys]'\
45
  '(-m --mouse)'{-m,--mouse}'[enable the use of the mouse]' \
45
  {-r+,--fill=}'[Set width for hard-wrap and justify]:init'\
46
  '(-n --noread)'{-n,--noread}"[don't read the file (only write it)]" \
46
  {-s+,--speller=}'[Enable alternate speller]:prog'\
47
  '(-o --operatingdir)'{-o+,--operatingdir=}'[set operating directory]:directory:_directories' \
47
  {-t,--tempfile}'[Auto save on exit, do not prompt]'\
48
  '(-p --preserve)'{-p,--preserve}'[preserve XON (^Q) and XOFF (^S) keys]' \
48
  {-w,--nowrap}'[Do not hard-wrap long lines default]'\
49
  '(-q --indicator)'{-q,--indicator}'[show a position+portion indicator]' \
49
  {-x,--nohelp}'[Do not show the two help lines]'\
50
  '(-r --fill)'{-r+,--fill=}'[set width for hard-wrap and justification]:width [-8]' \
50
  {-y,--afterends}'[Make Ctrl+Right stop at word ends]'\
51
  '(-s --speller)'{-s+,--speller=}'[enable alternate speller]:program:_command_names -e' \
51
  {-z,--suspend}'[Enable suspension]'\
52
  '(-t --tempfile)'{-t,--tempfile}'[auto save on exit, do not prompt]' \
52
  {-$,--softwrap}'[Enable soft line wrapping]'\
53
  '(-u --unix -N --noconvert)'{-u,--unix}'[save a file by default in Unix format]' \
53
   '(-t -q)*:file:_files'
54
  '(-v --view)'{-v,--view}'[view mode (read-only)]' \
55
  '(-w --nowrap -b --breaklonglines)'{-w,--nowrap}"[don't hard-wrap long lines default]" \
56
  '(-x --nohelp)'{-x,--nohelp}"[don't show the two help lines]"  \
57
  '(-y --afterends)'{-y,--afterends}'[make Ctrl+Right stop at word ends]' \
58
  '(-z --suspend)'{-z,--suspend}'[enable suspension]' \
59
  '(-% --stateflags)'{-%,--stateflags}'[show some states in the title bar]' \
60
  '(-_ --minibar -U --quickblank)'{-_,--minibar}'[suppress the title bar and show information at the bottom of the screen]' \
61
  '(-! --magic)'{-\!,--magic}'[try libmagic to determine applicable syntax]' \
62
  '(-t -q)*: :->args' && ret=0
63
64
if [[ -n $state ]]; then
65
  case $PREFIX in
66
    +) _message -e lines "start at a given line" ;;
67
    +[crCR]#[/?]) _message -e 'search string' ;;
68
    +<->,) _message -e 'column number' ;;
69
    *) _files && ret=0 ;;
70
  esac
71
fi
72
73
return ret
(-)zsh-completions-0.32.0/src/_node (-10 / +18 lines)
Lines 75-100 Link Here
75
  '--cpu-prof-interval=[sampling interval in microseconds for the V8 CPU profiler]:number' \
75
  '--cpu-prof-interval=[sampling interval in microseconds for the V8 CPU profiler]:number' \
76
  '--disable-proto=[disable Object.prototype.__proto__]:mode:(delete throw)' \
76
  '--disable-proto=[disable Object.prototype.__proto__]:mode:(delete throw)' \
77
  '--disallow-code-generation-from-strings[disallow eval and friends]' \
77
  '--disallow-code-generation-from-strings[disallow eval and friends]' \
78
  '--dns-result-order=[set default value of verbatim in dns.lookup]: :(ipv4first verbatim)' \
79
  '--enable-fips[enable FIPS crypto at startup]' \
78
  '--enable-source-maps[source map support]' \
80
  '--enable-source-maps[source map support]' \
81
  '--es-module-specifier-resolution=[extension resolution algorithm for es modules]:resolution algorithm:(explicit none)' \
82
  '--experimental-global-webcrypto[expose experimental Web Crypto API on the global scope]' \
79
  '--experimental-import-meta-resolve[experimental ES Module import.meta.resolve() support]' \
83
  '--experimental-import-meta-resolve[experimental ES Module import.meta.resolve() support]' \
80
  '(--loader --experimental-loader)'{--loader,--experimental-loader}'=[Specify the module of a custom ECMAScript Module loader]: :_files' \
84
  '(--loader --experimental-loader)'{--loader,--experimental-loader}'=[Specify the module of a custom ECMAScript Module loader]: :_files' \
81
  '--experimental-modules[experimental ES Module support and caching modules]' \
85
  '--experimental-network-imports[experimental https support for the ES Module loader]' \
82
  '--experimental-policy=[security policy file]: :_files' \
86
  '--experimental-policy=[security policy file]: :_files' \
83
  '--experimental-repl-await[experimental await keyword support in REPL]' \
84
  '--experimental-report[enable report generation]' \
85
  '--experimental-specifier-resolution=[extension resolution algorithm for es modules]:resolution algorithm:(explicit none)' \
86
  '--experimental-vm-modules[experimental ES Module support in vm module]' \
87
  '--experimental-vm-modules[experimental ES Module support in vm module]' \
87
  '--experimental-wasi-unstable-preview1[experimental WASI support]' \
88
  '--experimental-wasi-unstable-preview1[experimental WASI support]' \
88
  '--experimental-wasm-modules[experimental ES module support for webassembly modules]' \
89
  '--experimental-wasm-modules[experimental ES module support for webassembly modules]' \
89
  '--force-context-aware[disable loading non-context-aware addons]' \
90
  '--force-context-aware[disable loading non-context-aware addons]' \
91
  '--force-fips[force FIPS crypto]' \
90
  '--frozen-intrinsics[experimental frozen intrinsics support]' \
92
  '--frozen-intrinsics[experimental frozen intrinsics support]' \
91
  '--heap-prof[Start the V8 heap profiler on start up]' \
93
  '--heap-prof[Start the V8 heap profiler on start up]' \
92
  '--heap-prof-dir=[Directory where the V8 profiles generated by --heap-prof]: :_files -/' \
94
  '--heap-prof-dir=[Directory where the V8 profiles generated by --heap-prof]: :_files -/' \
93
  '--heap-prof-interval=[sampling interval in bytes for the V8 heap profile]:number' \
95
  '--heap-prof-interval=[sampling interval in bytes for the V8 heap profile]: :number' \
94
  '--heap-prof-name=[file name of the V8 heap profile generated]: :_files' \
96
  '--heap-prof-name=[file name of the V8 heap profile generated]: :_files' \
95
  '--heapsnapshot-signal=[Generate heap snapshot on specified signal]:signals:_signals -s' \
97
  '--heapsnapshot-signal=[Generate heap snapshot on specified signal]:signals:_signals -s' \
96
  '--http-parser=[HTTP parser]:HTTP parser:(legacy llhttp)' \
97
  '--http-server-default-timeout=[default http server socket timeout in ms]::number' \
98
  '--huge-max-old-generation-size[increase default maximum heap size with 16GB or more]' \
98
  '--huge-max-old-generation-size[increase default maximum heap size with 16GB or more]' \
99
  '--icu-data-dir=[set ICU data load path to dir (overrides NODE_ICU_DATA) note: linked-in ICU data is present]: :_directories' \
99
  '--icu-data-dir=[set ICU data load path to dir (overrides NODE_ICU_DATA) note: linked-in ICU data is present]: :_directories' \
100
  '--input-type=[set module type for string input]:module type :(commonjs module)' \
100
  '--input-type=[set module type for string input]:module type :(commonjs module)' \
Lines 103-115 Link Here
103
  '(--debug-port --inspect-port)'{--debug-port,--inspect-port}'=[set host:port for inspector]:[host\:]port' \
103
  '(--debug-port --inspect-port)'{--debug-port,--inspect-port}'=[set host:port for inspector]:[host\:]port' \
104
  '--inspect=-[activate inspector on host:port (default: 127.0.0.1:9229)]:[host\:]port' \
104
  '--inspect=-[activate inspector on host:port (default: 127.0.0.1:9229)]:[host\:]port' \
105
  '--inspect-publish-uid=[comma separated list of destinations for inspector uid]' \
105
  '--inspect-publish-uid=[comma separated list of destinations for inspector uid]' \
106
  '--interpreted-frames-native-stack[helm system profilers to translate JavaScript interpreted frames]' \
106
  '--interpreted-frames-native-stack[help system profilers to translate JavaScript interpreted frames]' \
107
  '--jitless[Disable runtime allocation of executable memory]' \
107
  '--jitless[Disable runtime allocation of executable memory]' \
108
  '--max-http-header-size=[set the maximum size of HTTP headers]::number' \
108
  '--max-http-header-size=[set the maximum size of HTTP headers]: :number' \
109
  '--napi-modules[load N-API modules (no-op - option kept for compatibility)]' \
109
  '--napi-modules[load N-API modules (no-op - option kept for compatibility)]' \
110
  '--no-addons[disable loading native addons]' \
110
  '--no-deprecation[silence deprecation warnings]' \
111
  '--no-deprecation[silence deprecation warnings]' \
112
  '--no-experimental-fetch[disable experimental Fetch API]' \
113
  '--no-experimental-repl-await[disable experimental await keyword support in REPL]' \
111
  '--no-force-async-hooks-checks[disable checks for async_hooks]' \
114
  '--no-force-async-hooks-checks[disable checks for async_hooks]' \
115
  '--no-global-search-paths[disable global module search paths]' \
112
  '--no-warnings[silence all process warnings]' \
116
  '--no-warnings[silence all process warnings]' \
117
  '--node-memory-debug[run with extra debug checks for memory leaks in Node.js itself]' \
113
  '--openssl-config=[load OpenSSL configuration from the specified file (overrides OPENSSL_CONF)]:file:_files' \
118
  '--openssl-config=[load OpenSSL configuration from the specified file (overrides OPENSSL_CONF)]:file:_files' \
114
  '--pending-deprecation[emit pending deprecation warnings]' \
119
  '--pending-deprecation[emit pending deprecation warnings]' \
115
  '--policy-integrity=[ensure the security policy contents match the specified integrity]' \
120
  '--policy-integrity=[ensure the security policy contents match the specified integrity]' \
Lines 125-130 Link Here
125
  '--report-on-signal=[generate diagnostic report upon receiving signals]' \
130
  '--report-on-signal=[generate diagnostic report upon receiving signals]' \
126
  '--report-signal=[causes diagnostic report to be produced on provided signal]:signals:_signals -s' \
131
  '--report-signal=[causes diagnostic report to be produced on provided signal]:signals:_signals -s' \
127
  '--report-uncaught-exception[generate diagnostic report on uncaught exceptions]' \
132
  '--report-uncaught-exception[generate diagnostic report on uncaught exceptions]' \
133
  '--secure-heap=[total size of the OpenSSL secure heap]: :number' \
134
  '--secure-heap-min=[minimum allocation size from the OpenSSL secure heap]' \
128
  '--throw-deprecation[throw an exception on deprecations]' \
135
  '--throw-deprecation[throw an exception on deprecations]' \
129
  '--title=[the process title to use on startup]:process title' \
136
  '--title=[the process title to use on startup]:process title' \
130
  '--tls-cipher-list=[use an alternative default TLS cipher list]:cipher list string' \
137
  '--tls-cipher-list=[use an alternative default TLS cipher list]:cipher list string' \
Lines 135-148 Link Here
135
  '(--tls-min-v1.0 --tls-min-v1.2 --tls-min-v1.3)--tls-min-v1.1[set default TLS minimum to TLSv1.1]' \
142
  '(--tls-min-v1.0 --tls-min-v1.2 --tls-min-v1.3)--tls-min-v1.1[set default TLS minimum to TLSv1.1]' \
136
  '(--tls-min-v1.0 --tls-min-v1.1 --tls-min-v1.3)--tls-min-v1.2[set default TLS minimum to TLSv1.2]' \
143
  '(--tls-min-v1.0 --tls-min-v1.1 --tls-min-v1.3)--tls-min-v1.2[set default TLS minimum to TLSv1.2]' \
137
  '(--tls-max-v1.2 --tls-min-v1.0 --tls-min-v1.1 --tls-min-v1.2)--tls-min-v1.3[set default TLS minimum to TLSv1.3]' \
144
  '(--tls-max-v1.2 --tls-min-v1.0 --tls-min-v1.1 --tls-min-v1.2)--tls-min-v1.3[set default TLS minimum to TLSv1.3]' \
145
  '--trace-atomics-wait[trace Atomics.wait operations]' \
138
  '--trace-deprecation[show stack traces on deprecations]' \
146
  '--trace-deprecation[show stack traces on deprecations]' \
139
  '--trace-event-categories[comma separated list of trace event categories to record]: :{_values -s , categories node node.async_hooks node.bootstrap node.perf node.perf.usertiming node.perf.timerify node.fs.sync node.vm.script v8}' \
147
  '--trace-event-categories[comma separated list of trace event categories to record]: :{_values -s , categories node node.async_hooks node.bootstrap node.perf node.perf.usertiming node.perf.timerify node.fs.sync node.vm.script v8}' \
140
  '--trace-event-file-pattern[Template string specifying the filepath for the trace-events data, it supports ${rotation} and ${pid} log-rotation id. %2$u is the pid.]:template string' \
148
  '--trace-event-file-pattern[Template string specifying the filepath for the trace-events data, it supports ${rotation} and ${pid} log-rotation id. %2$u is the pid.]:template string' \
141
  '--trace-events-enabled[track trace events]' \
142
  '--trace-exit[show stack trace when an environment exits]' \
149
  '--trace-exit[show stack trace when an environment exits]' \
143
  '--trace-sigint[prints a stack trace on SIGINT]' \
150
  '--trace-sigint[prints a stack trace on SIGINT]' \
144
  '--trace-sync-io[show stack trace when use of sync IO is detected after the first tick]' \
151
  '--trace-sync-io[show stack trace when use of sync IO is detected after the first tick]' \
145
  '--trace-tls[prints TLS packet trace information to stderr]' \
152
  '--trace-tls[prints TLS packet trace information to stderr]' \
153
  '--trace-uncaught[show stack traces for the throw behind uncaught exceptions]' \
146
  '--trace-warnings[show stack traces on process warnings]' \
154
  '--trace-warnings[show stack traces on process warnings]' \
147
  '--track-heap-objects[track heap object allocations for heap snapshots]' \
155
  '--track-heap-objects[track heap object allocations for heap snapshots]' \
148
  '--unhandled-rejections=[define unhandled rejections behavior]:rejection behavior:(strict warn none)' \
156
  '--unhandled-rejections=[define unhandled rejections behavior]:rejection behavior:(strict warn none)' \
(-)zsh-completions-0.32.0/src/_openssl (-3 / +5 lines)
Lines 611-617 Link Here
611
_openssl_genpkey() {
611
_openssl_genpkey() {
612
  # written for openssl 1.0.1k
612
  # written for openssl 1.0.1k
613
  local ciphers cipher_opts
613
  local ciphers cipher_opts
614
  ciphers=( ${$(openssl list-cipher-algorithms | cut -d' ' -f1)} )
614
  if ! ciphers=( ${$(openssl list-cipher-algorithms | cut -d' ' -f1)} ) 2>/dev/null ; then
615
    ciphers=( ${$(openssl list -cipher-algorithms | cut -d' ' -f1)} )
616
  fi
615
  cipher_opts=()
617
  cipher_opts=()
616
  for alg in ${ciphers}; do
618
  for alg in ${ciphers}; do
617
    cipher_opts=(${cipher_opts} "(${${(l:32:: ::-:)ciphers[@]}//  / })-${alg}[use this cipher to encrypt the key]")
619
    cipher_opts=(${cipher_opts} "(${${(l:32:: ::-:)ciphers[@]}//  / })-${alg}[use this cipher to encrypt the key]")
Lines 683-689 Link Here
683
    '-reqout[write DER encoded OCSP request to "file"]:file:_files' \
685
    '-reqout[write DER encoded OCSP request to "file"]:file:_files' \
684
    '-respout[write DER encoded OCSP response to "file"]:file:_files' \
686
    '-respout[write DER encoded OCSP response to "file"]:file:_files' \
685
    '-reqin[read DER encoded OCSP request from "file"]:file:_files' \
687
    '-reqin[read DER encoded OCSP request from "file"]:file:_files' \
686
    '-respin[read DER encoded OCSP reponse from "file"]:file:_files' \
688
    '-respin[read DER encoded OCSP response from "file"]:file:_files' \
687
    '-nonce[add OCSP nonce to request]' \
689
    '-nonce[add OCSP nonce to request]' \
688
    "-no_nonce[don't add OCSP nonce to request]" \
690
    "-no_nonce[don't add OCSP nonce to request]" \
689
    '-url[OCSP responder URL]:URL: ' \
691
    '-url[OCSP responder URL]:URL: ' \
Lines 711-717 Link Here
711
    "-resp_no_certs[don't include any certificates in response]" \
713
    "-resp_no_certs[don't include any certificates in response]" \
712
    '-nmin[number of minutes before next update]:minutes: ' \
714
    '-nmin[number of minutes before next update]:minutes: ' \
713
    '-ndays[number of days before next update]:days: ' \
715
    '-ndays[number of days before next update]:days: ' \
714
    '-resp_key_id[identify reponse by signing certificate key ID]' \
716
    '-resp_key_id[identify response by signing certificate key ID]' \
715
    '-nrequest[number of requests to accept (default unlimited)]:limit: ' \
717
    '-nrequest[number of requests to accept (default unlimited)]:limit: ' \
716
    '-dss1[use specified digest in the request]' \
718
    '-dss1[use specified digest in the request]' \
717
    '-md4[use specified digest in the request]' \
719
    '-md4[use specified digest in the request]' \
(-)zsh-completions-0.32.0/src/_perf (-1 / +1 lines)
Lines 614-620 Link Here
614
            '--log-fd[log output to fd, instead of stderr]' \
614
            '--log-fd[log output to fd, instead of stderr]' \
615
            '--pre[pre measurement hook]: :_command_names -e' \
615
            '--pre[pre measurement hook]: :_command_names -e' \
616
            '--post[post measurement hook]: :_command_names -e' \
616
            '--post[post measurement hook]: :_command_names -e' \
617
            '(-I --interval-print)'{-I,--interval-print=}'[print count deltas every millseconds]:msec:' \
617
            '(-I --interval-print)'{-I,--interval-print=}'[print count deltas every milliseconds]:msec:' \
618
            '--interval-count[print count delta for fixed number of times]:times:' \
618
            '--interval-count[print count delta for fixed number of times]:times:' \
619
            '--interval-clear[clear the screen before next interval]' \
619
            '--interval-clear[clear the screen before next interval]' \
620
            '--timeout[stop the perf stat session and print count after milliseconds]:msec:' \
620
            '--timeout[stop the perf stat session and print count after milliseconds]:msec:' \
(-)zsh-completions-0.32.0/src/_pgsql_utils (-67 / +135 lines)
Lines 89-95 Link Here
89
89
90
    _pgsql_user_sql='select r.rolname from pg_catalog.pg_roles r where r.rolcanlogin = true'
90
    _pgsql_user_sql='select r.rolname from pg_catalog.pg_roles r where r.rolcanlogin = true'
91
91
92
    compadd "$@" - $( psql $_pgsql_params[@] -Aqt -c $_pgsql_user_sql template1 2>/dev/null )
92
    compadd "$@" - $( psql $_pgsql_params[@] -XAqt -c $_pgsql_user_sql template1 2>/dev/null )
93
93
94
}
94
}
95
95
Lines 122-128 Link Here
122
	order by 1"
122
	order by 1"
123
123
124
    compadd "$@" - \
124
    compadd "$@" - \
125
        $( psql $_pgsql_params[@] -Aqt -c $_pgsql_table_sql $db 2>/dev/null )
125
        $( psql $_pgsql_params[@] -AXqt -c $_pgsql_table_sql $db 2>/dev/null )
126
}
126
}
127
127
128
_pgsql_schemas () {
128
_pgsql_schemas () {
Lines 139-145 Link Here
139
        order by 1;"
139
        order by 1;"
140
140
141
    compadd "$@" - \
141
    compadd "$@" - \
142
        $( psql $_pgsql_params[@] -Aqt -c $_pgsql_schema_sql $db 2>/dev/null )
142
        $( psql $_pgsql_params[@] -AXqt -c $_pgsql_schema_sql $db 2>/dev/null )
143
}
143
}
144
144
145
_pgsql_databases () {
145
_pgsql_databases () {
Lines 147-156 Link Here
147
    _pgsql_get_identity
147
    _pgsql_get_identity
148
148
149
    local _pgsql_services _pgsql_service_files
149
    local _pgsql_services _pgsql_service_files
150
    _pgsql_service_files=(
150
    _pgsql_service_files=(~/.pg_service.conf)
151
      ~/.pg_service.conf
151
    (( $+commands[pg_config] )) && _pgsql_service_files+=$(pg_config --sysconfdir)/pg_service.conf
152
      $(pg_config --sysconfdir)/pg_service.conf
152
153
    )
154
    _pgsql_services=$( grep -h '^\[.*\]' $_pgsql_service_files 2>/dev/null \
153
    _pgsql_services=$( grep -h '^\[.*\]' $_pgsql_service_files 2>/dev/null \
155
                         | sed -e 's/^\[/service=/' -e 's/\].*$//' )
154
                         | sed -e 's/^\[/service=/' -e 's/\].*$//' )
156
155
Lines 160-166 Link Here
160
159
161
    compadd "$@" - \
160
    compadd "$@" - \
162
            ${(f)_pgsql_services} \
161
            ${(f)_pgsql_services} \
163
            $( psql $_pgsql_params[@] -Atq -c $_pgsql_db_sql template1 2>/dev/null )
162
            $( psql $_pgsql_params[@] -AXtq -c $_pgsql_db_sql template1 2>/dev/null )
164
}
163
}
165
164
166
_pgsql_encodings () {
165
_pgsql_encodings () {
Lines 170-176 Link Here
170
    local _pgsql_db_sql
169
    local _pgsql_db_sql
171
    _pgsql_db_sql="select pg_encoding_to_char(i) from generate_series(0,100) i;"
170
    _pgsql_db_sql="select pg_encoding_to_char(i) from generate_series(0,100) i;"
172
171
173
    compadd "$@" - $( psql $_pgsql_params[@] -Atq -c $_pgsql_db_sql template1  )
172
    compadd "$@" - $( psql $_pgsql_params[@] -AXtq -c $_pgsql_db_sql template1  )
174
}
173
}
175
174
176
175
Lines 184-217 Link Here
184
183
185
    _arguments -C -s "-*" \
184
    _arguments -C -s "-*" \
186
        "$_pgsql_common_opts[@]" \
185
        "$_pgsql_common_opts[@]" \
187
        {-V,--version}'[display client version]' \
188
        {-a,--echo-all}'[print commands read]' \
189
        {-A,--no-align}'[unaligned output mode]' \
190
        {-c+,--command=}':execute SQL command:' \
186
        {-c+,--command=}':execute SQL command:' \
191
        {-d+,--dbname=}':database to connect to:_pgsql_databases' \
187
        {-d+,--dbname=}':database to connect to:_pgsql_databases' \
188
        {-f+,--file=}':SQL file to read:_files' \
189
        {-l,--list}'[list databases]' \
190
        {-v+,--set=,--variable=}':set SQL variable:' \
191
        {-V,--version}'[output version information, then exit]' \
192
        {-X,--no-psqlrc}'[don'\''t read ~/.psqlrc]' \
193
        {-1,--single-transaction}'[restore as a single transaction]' \
194
        {-\?,--help=}':display help:' \
195
        \
196
        {-a,--echo-all}'[print commands read]' \
192
        {-b,--echo-errors}'[echo failed commands]' \
197
        {-b,--echo-errors}'[echo failed commands]' \
193
        {-e,--echo-queries}'[display queries submitted]' \
198
        {-e,--echo-queries}'[display queries submitted]' \
194
        {-E,--echo-hidden}'[display hidden queries]' \
199
        {-E,--echo-hidden}'[display hidden queries]' \
195
        {-L,--log-file=}'[send session log to file]' \
200
        {-L,--log-file=}'[send session log to file]' \
196
        {-n,--no-readline}'[disable enhanced command line editing (readline)]' \
201
        {-n,--no-readline}'[disable enhanced command line editing (readline)]' \
197
        {-f+,--file=}':SQL file to read:_files' \
198
        {-F+,--field-separator=}':field separator char:' \
199
        {-H,--html}'[HTML output]' \
200
        {-l,--list}'[list databases]' \
201
        {-o+,--output=}':query output:_files' \
202
        {-o+,--output=}':query output:_files' \
202
        {-P+,--pset=}':set psql variable:' \
203
        {-q,--quiet}'[non verbose mode]' \
203
        {-q,--quiet}'[non verbose mode]' \
204
        {-R+,--record-separator=}':record separator char:' \
205
        {-s,--single-step}'[prompt before each query]' \
204
        {-s,--single-step}'[prompt before each query]' \
206
        {-S,--single-line}'[newline sends query]' \
205
        {-S,--single-line}'[newline sends query]' \
206
        \
207
        {-A,--no-align}'[unaligned output mode]' \
208
        --csv'[CSV (Comma-Separated Values) table output mode]' \
209
        {-F+,--field-separator=}':field separator char:' \
210
        {-H,--html}'[HTML output]' \
211
        {-P+,--pset=}':set psql variable:' \
212
        {-R+,--record-separator=}':record separator char:' \
207
        {-t,--tuples-only}'[don'\''t display header/footer]' \
213
        {-t,--tuples-only}'[don'\''t display header/footer]' \
208
        {-T+,--table-attr=}':HTML table options:' \
214
        {-T+,--table-attr=}':HTML table options:' \
209
        -u'[prompt for username/password]' \
210
        {-v+,--set=,--variable=}':set SQL variable:' \
211
        {-x,--expanded}'[one column per line]' \
215
        {-x,--expanded}'[one column per line]' \
212
        {-z,--field-separator-zero}'[set field separator for unaligned output to zero byte]' \
216
        {-z,--field-separator-zero}'[set field separator for unaligned output to zero byte]' \
213
        {-0,--record-separator-zero}'[set record separator for unaligned output to zero byte]' \
217
        {-0,--record-separator-zero}'[set record separator for unaligned output to zero byte]' \
214
        {-X,--no-psqlrc}'[don'\''t read ~/.psqlrc]' \
218
        -u'[prompt for username/password]' \
215
        ':PostgreSQL database:_pgsql_databases' \
219
        ':PostgreSQL database:_pgsql_databases' \
216
        ':PostgreSQL user:_pgsql_users'
220
        ':PostgreSQL user:_pgsql_users'
217
}
221
}
Lines 222-276 Link Here
222
226
223
    _arguments -C -s \
227
    _arguments -C -s \
224
        "$_pgsql_common_opts[@]" \
228
        "$_pgsql_common_opts[@]" \
229
        {-f+,--file=}':output file:_files' \
230
        {-F+,--format=}':output format:_values "format" "p[plain text]" "t[tar]" "c[custom]"' \
231
        {-j,--jobs=}'[use this many parallel jobs to dump]' \
232
        {-v,--verbose}'[verbose mode]' \
233
        {-V,--version}'[output version information, then exit]' \
234
        {-Z+,--compress=}':compression level:_values "level" 9 8 7 6 5 4 3 2 1 0' \
235
        --lock-wait-timeout='[fail after waiting TIMEOUT for a table lock]' \
236
        --no-sync'[do not wait for changes to be written safely to disk]' \
237
        {-\?,--help}'[display help]' \
238
        \
225
        {-a,--data-only}'[dump only data]' \
239
        {-a,--data-only}'[dump only data]' \
226
        {-b,--blobs}'[dump blobs as well]' \
240
        {-b,--blobs}'[dump blobs as well]' \
241
        {-B,--no-blobs}'[exclude large objects in dump]' \
227
        {-c,--clean}'[include clean cmds in dump]' \
242
        {-c,--clean}'[include clean cmds in dump]' \
228
        {-C,--create}'[include createdb cmds in dump]' \
243
        {-C,--create}'[include createdb cmds in dump]' \
244
        {-e+,--extension=}'[dump the specified extension(s) only]' \
229
        {-E+,--encoding=}':database encoding:_pgsql_encodings' \
245
        {-E+,--encoding=}':database encoding:_pgsql_encodings' \
230
        {-d,--inserts}'[use INSERT not COPY]' \
231
        {-D,--{attribute,column}-inserts}'[use INSERT (cols) not COPY]' \
232
        {-f+,--file=}':output file:_files' \
233
        {-F+,--format=}':output format:_values "format" "p[plain text]" "t[tar]" "c[custom]"' \
234
        {-j,--jobs=}'[use this many parallel jobs to dump]' \
235
        {-i,--ignore-version}'[ignore version mismatch]' \
236
        {-n+,--schema=}':schema to dump:_pgsql_schemas' \
246
        {-n+,--schema=}':schema to dump:_pgsql_schemas' \
237
        {-N+,--exclude-schema=}':schema to NOT dump:_pgsql_schemas' \
247
        {-N+,--exclude-schema=}':schema to NOT dump:_pgsql_schemas' \
238
        {-o,--oids}'[dump objects identifiers for every table]' \
239
        {-O,--no-owner}'[don'\''t recreate as same owner]' \
248
        {-O,--no-owner}'[don'\''t recreate as same owner]' \
240
        {-R,--no-reconnect}'[don'\''t output connect]' \
241
        {-s,--schema-only}'[no data, only schema]' \
249
        {-s,--schema-only}'[no data, only schema]' \
242
        {-S+,--superuser=}':superuser name:_pgsql_users' \
250
        {-S+,--superuser=}':superuser name:_pgsql_users' \
243
        {-t+,--table=}':table to dump:_pgsql_tables' \
251
        {-t+,--table=}':table to dump:_pgsql_tables' \
244
        {-T+,--exclude-table=}':table to NOT dump:_pgsql_tables' \
252
        {-T+,--exclude-table=}':table to NOT dump:_pgsql_tables' \
245
        {-v,--verbose}'[verbose mode]' \
246
        {-V,--version}'[display client version]' \
247
        {-x,--no-{acl,privileges}}'[don'\''t dump ACLs]' \
253
        {-x,--no-{acl,privileges}}'[don'\''t dump ACLs]' \
248
        -X+':option:_values "option" use-set-session-authorization disable-triggers' \
249
        {-Z+,--compress=}':compression level:_values "level" 9 8 7 6 5 4 3 2 1 0' \
250
        ':PostgreSQL database:_pgsql_databases' \
251
        --section=':dump named section:_values "section" pre-data data post-data' \
252
        --binary-upgrade'[for use by upgrade utilities only]' \
254
        --binary-upgrade'[for use by upgrade utilities only]' \
253
        --column-inserts'[dump data as INSERT commands with column names]' \
255
        {-D,--{attribute,column}-inserts}'[use INSERT (cols) not COPY]' \
254
        --disable-dollar-quoting'[disable dollar quoting, use SQL standard quoting]' \
256
        --disable-dollar-quoting'[disable dollar quoting, use SQL standard quoting]' \
255
        --disable-triggers'[disable triggers during data-only restore]' \
257
        --disable-triggers'[disable triggers during data-only restore]' \
256
        --enable-row-security'[enable row security (dump only content user has access to)]' \
258
        --enable-row-security'[enable row security (dump only content user has access to)]' \
257
        --exclude-table-data='[do NOT dump data for the named table(s)]' \
259
        --exclude-table-data='[do NOT dump data for the named table(s)]' \
258
        --if-exists'[use IF EXISTS when dropping objects]' \
260
        --if-exists'[use IF EXISTS when dropping objects]' \
261
        --include-foreign-data='[include data of foreign servers]' \
259
        --inserts'[dump data as INSERT commands, rather than COPY]' \
262
        --inserts'[dump data as INSERT commands, rather than COPY]' \
260
        --lock-wait-timeout='[fail after waiting TIMEOUT for a table lock]' \
261
        --load-via-partition-root'[load partitions via the root table]' \
263
        --load-via-partition-root'[load partitions via the root table]' \
262
        --no-comments'[do not dump comments]' \
264
        --no-comments'[do not dump comments]' \
263
        --no-publications'[do not dump publications]' \
265
        --no-publications'[do not dump publications]' \
264
        --no-security-labels'[do not dump security label assignments]' \
266
        --no-security-labels'[do not dump security label assignments]' \
267
        --no-subscriptions'[do not dump subscriptions]' \
265
        --no-synchronized-snapshots'[do not use synchronized snapshots in parallel jobs]' \
268
        --no-synchronized-snapshots'[do not use synchronized snapshots in parallel jobs]' \
266
        --no-tablespaces'[do not dump tablespace assignments]' \
269
        --no-tablespaces'[do not dump tablespace assignments]' \
270
        --no-toast-compression'[do not dump TOAST compression methods]' \
267
        --no-unlogged-table-data'[do not dump unlogged table data]' \
271
        --no-unlogged-table-data'[do not dump unlogged table data]' \
268
        --on-conflict-do-nothing'[add ON CONFLICT DO NOTHING to INSERT commands]' \
272
        --on-conflict-do-nothing'[add ON CONFLICT DO NOTHING to INSERT commands]' \
269
        --quote-all-identifiers'[quote all identifiers, even if not key words]' \
273
        --quote-all-identifiers'[quote all identifiers, even if not key words]' \
274
        --rows-per-insert=['number of rows per INSERT'] \
275
        --section=':dump named section:_values "section" pre-data data post-data' \
270
        --serializable-deferrable'[wait until the dump can run without anomalies]' \
276
        --serializable-deferrable'[wait until the dump can run without anomalies]' \
271
        --snapshot='[use given snapshot for the dump]' \
277
        --snapshot='[use given snapshot for the dump]' \
272
        --strict-names'[require table and/or schema include patterns to match at least one entity each]' \
278
        --strict-names'[require table and/or schema include patterns to match at least one entity each]' \
273
        --use-set-session-authorization'[use SET SESSION AUTHORIZATION commands instead of ALTER OWNER]'
279
        --use-set-session-authorization'[use SET SESSION AUTHORIZATION commands instead of ALTER OWNER]' \
280
        \
281
        {-i,--ignore-version}'[ignore version mismatch]' \
282
        {-o,--oids}'[dump objects identifiers for every table]' \
283
        {-R,--no-reconnect}'[don'\''t output connect]' \
284
        -X+':option:_values "option" use-set-session-authorization disable-triggers' \
285
        ':PostgreSQL database:_pgsql_databases'
274
}
286
}
275
287
276
_pg_restore () {
288
_pg_restore () {
Lines 283-291 Link Here
283
        {-f+,--file=}':output file:_files' \
295
        {-f+,--file=}':output file:_files' \
284
        {-F+,--format=}':output format:_values "format" "p[plain text]" "t[tar]" "c[custom]"' \
296
        {-F+,--format=}':output format:_values "format" "p[plain text]" "t[tar]" "c[custom]"' \
285
        {-l,--list}'[list databases]' \
297
        {-l,--list}'[list databases]' \
298
        {-v,--verbose}'[verbose mode]' \
299
        {-V,--version}'[output version information, then exit]' \
300
        {-\?,--help}'[display help]' \
301
        \
286
        {-a,--data-only}'[dump only data]' \
302
        {-a,--data-only}'[dump only data]' \
287
        {-b,--blobs}'[include large objects in dump]' \
288
        {-B,--no-blobs}'[exclude large objects in dump]' \
289
        {-c,--clean}'[include clean (drop) cmds before recreating]' \
303
        {-c,--clean}'[include clean (drop) cmds before recreating]' \
290
        {-C,--create}'[include createdb cmds in dump]' \
304
        {-C,--create}'[include createdb cmds in dump]' \
291
        {-e,--exit-on-error}'[exit on error, default is to continue]' \
305
        {-e,--exit-on-error}'[exit on error, default is to continue]' \
Lines 301-308 Link Here
301
        {-T,--trigger=}':restore named trigger:' \
315
        {-T,--trigger=}':restore named trigger:' \
302
        {-x,--no-privileges}'[skip restoration of access privileges (grant/revoke)]' \
316
        {-x,--no-privileges}'[skip restoration of access privileges (grant/revoke)]' \
303
        {-1,--single-transaction}'[restore as a single transaction]' \
317
        {-1,--single-transaction}'[restore as a single transaction]' \
304
        {-v,--verbose}'[verbose mode]' \
305
        {-V,--version}'[display client version]' \
306
        --disable-triggers'[disable triggers during data-only restore]' \
318
        --disable-triggers'[disable triggers during data-only restore]' \
307
        --enable-row-security'[enable row security]' \
319
        --enable-row-security'[enable row security]' \
308
        --if-exists'[use IF EXISTS when dropping objects]' \
320
        --if-exists'[use IF EXISTS when dropping objects]' \
Lines 313-319 Link Here
313
        --no-subscriptions'[do not restore subscriptions]' \
325
        --no-subscriptions'[do not restore subscriptions]' \
314
        --no-tablespaces'[do not restore tablespace assignments]' \
326
        --no-tablespaces'[do not restore tablespace assignments]' \
315
        --section=':dump named section:_values "section" pre-data data post-data' \
327
        --section=':dump named section:_values "section" pre-data data post-data' \
328
        --strict-names'[require table and/or schema include patterns to match at least one entity each]' \
316
        --use-set-session-authorization'[use SET SESSION AUTHORIZATION commands instead of ALTER OWNER commands to set ownership]' \
329
        --use-set-session-authorization'[use SET SESSION AUTHORIZATION commands instead of ALTER OWNER commands to set ownership]' \
330
        \
331
        {-b,--blobs}'[include large objects in dump]' \
332
        {-B,--no-blobs}'[exclude large objects in dump]' \
333
        \
317
        "1: :_files"
334
        "1: :_files"
318
}
335
}
319
336
Lines 323-333 Link Here
323
340
324
    _arguments -C -s \
341
    _arguments -C -s \
325
        "$_pgsql_common_opts[@]" \
342
        "$_pgsql_common_opts[@]" \
343
        {-f+,--file=}':output file:_files' \
344
        {-v,--verbose}'[verbose mode]' \
345
        {-V,--version}'[output version information, then exit]' \
346
        --lock-wait-timeout='[fail after waiting TIMEOUT for a table lock]' \
347
        {-\?,--help}'[display help]' \
348
        \
326
        {-a,--data-only}'[dump only data]' \
349
        {-a,--data-only}'[dump only data]' \
327
        {-c,--clean}'[include clean (drop) cmds before recreating]' \
350
        {-c,--clean}'[include clean (drop) cmds before recreating]' \
351
        {-E,--encoding=}'[dump the data in encoding]' \
328
        {-g,--globals-only}'[dump only global objects, no databases]' \
352
        {-g,--globals-only}'[dump only global objects, no databases]' \
329
        {-f+,--file=}':output file:_files' \
330
        {-o,--oids}'[dump objects identifiers for every table]' \
331
        {-O,--no-owner}'[don'\''t recreate as same owner]' \
353
        {-O,--no-owner}'[don'\''t recreate as same owner]' \
332
        {-r,--roles-only}'[no databases or tablespaces, only roles]' \
354
        {-r,--roles-only}'[no databases or tablespaces, only roles]' \
333
        {-s,--schema-only}'[no data, only schema]' \
355
        {-s,--schema-only}'[no data, only schema]' \
Lines 338-349 Link Here
338
        --column-inserts'[use INSERT with column names not COPY]' \
360
        --column-inserts'[use INSERT with column names not COPY]' \
339
        --disable-dollar-quoting'[disable dollar quoting, use SQL standard quoting]' \
361
        --disable-dollar-quoting'[disable dollar quoting, use SQL standard quoting]' \
340
        --disable-triggers'[disable triggers during data-only restore]' \
362
        --disable-triggers'[disable triggers during data-only restore]' \
363
        --exclude-database=':exclude databases:_pgsql_databases' \
364
        --extra-float-digits='[override default setting for extra_float_digits]' \
365
        --if-exists'[use IF EXISTS when dropping objects]' \
341
        --inserts'[use INSERT not COPY]' \
366
        --inserts'[use INSERT not COPY]' \
367
        --load-via-partition-root'[pload partitions via the root table]' \
368
        --no-comments'[do not dump comments]' \
369
        --no-publications'[do not dump publications]' \
370
        --no-role-passwords'[do not dump passwords for roles]' \
342
        --no-security-labels'[do not dump security label assignments]' \
371
        --no-security-labels'[do not dump security label assignments]' \
372
        --no-subscriptions'[do not dump subscriptions]' \
373
        --no-sync'[do not wait for changes to be written safely to disk]' \
343
        --no-tablespaces'[do not dump tablespace assignments]' \
374
        --no-tablespaces'[do not dump tablespace assignments]' \
375
        --no-toast-compression'[do not dump TOAST compression methods]' \
344
        --no-unlogged-table-data'[do not dump unlogged table data]' \
376
        --no-unlogged-table-data'[do not dump unlogged table data]' \
377
        --on-conflict-do-nothing'[add ON CONFLICT DO NOTHING to INSERT commands]' \
345
        --quote-all-identifiers'[quote all identifiers, even if not key words]' \
378
        --quote-all-identifiers'[quote all identifiers, even if not key words]' \
346
        --use-set-session-authorization'[use SET SESSION AUTHORIZATION cmds instead of ALTER OWNER]'
379
        --rows-per-insert='[number of rows per INSERT]' \
380
        --use-set-session-authorization'[use SET SESSION AUTHORIZATION cmds instead of ALTER OWNER]' \
381
        {-o,--oids}'[dump objects identifiers for every table]' \
347
}
382
}
348
383
349
_createdb () {
384
_createdb () {
Lines 352-362 Link Here
352
387
353
    _arguments -C -s \
388
    _arguments -C -s \
354
        "$_pgsql_common_opts[@]" \
389
        "$_pgsql_common_opts[@]" \
390
        {-D+,--tablespace=}'[default tablespace for the database]' \
355
        {-e,--echo}'[display SQL queries]' \
391
        {-e,--echo}'[display SQL queries]' \
356
        {-q,--quiet}'[non verbose mode]' \
357
        {-D+,--location=}':database location:_directories' \
358
        {-T+,--template=}':database template:_pgsql_databases' \
359
        {-E+,--encoding=}':database encoding:_pgsql_encodings' \
392
        {-E+,--encoding=}':database encoding:_pgsql_encodings' \
393
        {-l+,--locale=}'[locale settings for the database]' \
394
        --lc-collate='[LC_COLLATE setting for the database]' \
395
        --lc-ctype='[LC_CTYPE setting for the database]' \
396
        {-O+,--owner=}':database user to own the new database:_pgsql_users' \
397
        {-T+,--template=}':database template:_pgsql_databases' \
398
        '--version[output version information, then exit]' \
399
        {-\?,--help}'[display help]' \
400
        \
401
        --maintenance-db=':alternate maintenance database:_pgsql_databases' \
402
        {-q,--quiet}'[non verbose mode]' \
403
        --location=':database location (unsupported since PostgrSQL 8.0):_directories' \
360
        ':PostgreSQL database:' \
404
        ':PostgreSQL database:' \
361
        ':comment:'
405
        ':comment:'
362
}
406
}
Lines 368-375 Link Here
368
    _arguments -C -s \
412
    _arguments -C -s \
369
        "$_pgsql_common_opts[@]" \
413
        "$_pgsql_common_opts[@]" \
370
        {-e,--echo}'[display SQL queries]' \
414
        {-e,--echo}'[display SQL queries]' \
371
        {-q,--quiet}'[non verbose mode]' \
415
        {-f,--force}'[try to terminate other connections before dropping]' \
372
        {-i,--interactive}'[confirm before drop]' \
416
        {-i,--interactive}'[confirm before drop]' \
417
        {-V,--version}'[output version information, then exit]' \
418
        --if-exists'[don'\''t treport error if database does'\''t exist]' \
419
        --maintenance-db=':alternate maintenance database:_pgsql_databases' \
420
        {-q,--quiet}'[non verbose mode]' \
373
        ':PostgreSQL database:_pgsql_databases'
421
        ':PostgreSQL database:_pgsql_databases'
374
}
422
}
375
423
Lines 381-400 Link Here
381
        "$_pgsql_common_opts[@]" \
429
        "$_pgsql_common_opts[@]" \
382
        {-a,--all}'[vacuum all databases]' \
430
        {-a,--all}'[vacuum all databases]' \
383
        {-d+,--dbname=}':database to connect to:_pgsql_databases' \
431
        {-d+,--dbname=}':database to connect to:_pgsql_databases' \
384
        {-t+,--table=}':table to dump:_pgsql_tables' \
432
        --disable-page-skipping'[disable all page-skipping behavior]' \
385
        {-f,--full}'[do full vacuuming]' \
386
        {-z,--analyze}'[update optimizer hints]' \
387
        {-Z,--analyze-only}'[only update optimizer statistics; no vacuum]' \
388
        {-e,--echo}'[show the commands being sent to the server]' \
433
        {-e,--echo}'[show the commands being sent to the server]' \
389
        {-q,--quiet}'[do not write any messages]' \
434
        {-f,--full}'[do full vacuuming]' \
390
        {-v,--verbose}'[write a lot of output]' \
435
        {-F,--freeze}'[freeze row transaction information]' \
436
        --force-index-cleanup'[always remove index entries that point to dead tuples]' \
437
        {-j,--jobs=}'[use this many concurrent connections to vacuum]' \
391
        '--min-mxid-age=[minimum multixact ID age of tables to vacuum]' \
438
        '--min-mxid-age=[minimum multixact ID age of tables to vacuum]' \
392
        '--min-xid-age=[minimum transaction ID age of tables to vacuum]' \
439
        '--min-xid-age=[minimum transaction ID age of tables to vacuum]' \
440
        --no-index-cleanup'[don'\''t remove index entries that point to dead tuples]' \
441
        --no-process-toast'[skip the TOAST table associated with the table to vacuum]' \
442
        --no-truncate'[don'\''t truncate empty pages at the end of the table]' \
443
        {-P+,--parallel=}'[use this many background workers for vacuum, if available]' \
444
        {-q,--quiet}'[do not write any messages]' \
393
        '--skip-locked[skip relations that cannot be immediately locked]' \
445
        '--skip-locked[skip relations that cannot be immediately locked]' \
394
        '--analyze-in-stages[only update optimizer statistics, in multiple]' \
446
        {-t+,--table=}':table to dump:_pgsql_tables' \
395
        '--help[show this help, then exit]' \
447
        {-v,--verbose}'[write a lot of output]' \
396
        '--version[output version information, then exit]' \
448
        {-V,--version}'[output version information, then exit]' \
397
        '--maintenance-db=[alternate maintenance database]' \
449
        {-z,--analyze}'[update optimizer hints]' \
450
        {-Z,--analyze-only}'[only update optimizer statistics; no vacuum]' \
451
        --analyze-in-stages'[only update optimizer statistics, in multiple stages for faster results; no vacuum]' \
452
        {-\?,--help}'[display help]' \
453
        --maintenance-db='[alternate maintenance database]' \
398
        '1:PostgreSQL database:_pgsql_databases'
454
        '1:PostgreSQL database:_pgsql_databases'
399
}
455
}
400
456
Lines 404-420 Link Here
404
460
405
    _arguments -C -s \
461
    _arguments -C -s \
406
        "$_pgsql_common_opts[@]" \
462
        "$_pgsql_common_opts[@]" \
407
        {-e,--echo}'[display SQL queries]' \
408
        {-c,--connection-limit=}'[connection limit for role (default: no limit)]' \
463
        {-c,--connection-limit=}'[connection limit for role (default: no limit)]' \
409
        {-d,--createdb}'[role can create new databases]' \
464
        {-d,--createdb}'[role can create new databases]' \
410
        {-D,--no-createdb}'[role cannot create databases]' \
465
        {-D,--no-createdb}'[role cannot create databases]' \
411
        {-E,--encrypted}'[encrypt stored password]' \
466
        {-e,--echo}'[display SQL queries]' \
412
        {-g,--role=}'[new role will be a member of this role]' \
467
        {-g,--role=}'[new role will be a member of this role]' \
413
        {-i,--inherit}'[role inherits privileges of roles it is a member of (default)]' \
468
        {-i,--inherit}'[role inherits privileges of roles it is a member of (default)]' \
414
        {-I,--no-inherit}'[role does not inherit privileges]' \
469
        {-I,--no-inherit}'[role does not inherit privileges]' \
415
        {-l,--login}'[role can login (default)]' \
470
        {-l,--login}'[role can login (default)]' \
416
        {-L,--no-login}'[role cannot login]' \
471
        {-L,--no-login}'[role cannot login]' \
417
        {-N,--unencrypted}'[do not encrypt stored password]' \
418
        {-P,--pwprompt}'[assign a password to new role]' \
472
        {-P,--pwprompt}'[assign a password to new role]' \
419
        {-r,--createrole}'[role can create new roles]' \
473
        {-r,--createrole}'[role can create new roles]' \
420
        {-R,--no-createrole}'[role cannot create roles]' \
474
        {-R,--no-createrole}'[role cannot create roles]' \
Lines 423-428 Link Here
423
        --interactive'[prompt for missing role name and attributes rather than using defaults]' \
477
        --interactive'[prompt for missing role name and attributes rather than using defaults]' \
424
        --replication'[role can initiate replication]' \
478
        --replication'[role can initiate replication]' \
425
        --no-replication'[role cannot initiate replication]' \
479
        --no-replication'[role cannot initiate replication]' \
480
        {-E,--encrypted}'[encrypt stored password]' \
481
        {-N,--unencrypted}'[do not encrypt stored password]' \
482
        {-\?,--help}'[display help]'
426
}
483
}
427
484
428
_dropuser () {
485
_dropuser () {
Lines 434-439 Link Here
434
        {-e,--echo}'[display SQL queries]' \
491
        {-e,--echo}'[display SQL queries]' \
435
        {-q,--quiet}'[non verbose mode]' \
492
        {-q,--quiet}'[non verbose mode]' \
436
        {-i,--interactive}'[prompt before deleting anything, and prompt for role name if not specified]' \
493
        {-i,--interactive}'[prompt before deleting anything, and prompt for role name if not specified]' \
494
        {-V,--version}'[output version information, then exit]' \
495
        --if-exists'[don'\''t report error if user doesn'\''t exist]' \
437
        ':PostgreSQL user:_pgsql_users'
496
        ':PostgreSQL user:_pgsql_users'
438
}
497
}
439
498
Lines 446-452 Link Here
446
        --auth-host=':default authentication method for local TCP/IP connections:_values "auth methods" $_pgsql_auth_methods[@]' \
505
        --auth-host=':default authentication method for local TCP/IP connections:_values "auth methods" $_pgsql_auth_methods[@]' \
447
        --auth-local=':default authentication method for local-socket connections:_values "auth methods" $_pgsql_auth_methods[@]' \
506
        --auth-local=':default authentication method for local-socket connections:_values "auth methods" $_pgsql_auth_methods[@]' \
448
        {-D+,--pgdata=}':location for this database cluster:_files' \
507
        {-D+,--pgdata=}':location for this database cluster:_files' \
449
        {-E+,--encoding=}':set default encoding for new databases:' \
508
        {-E+,--encoding=}':set default encoding for new databases:_pgsql_encodings' \
509
        {-g,--allow-group-access}'[allow group readexecute on data directory]' \
510
        {-k,--data-checksums}':use data page checksums:' \
450
        --locale=':set default locale for new databases:' \
511
        --locale=':set default locale for new databases:' \
451
        --lc-collate=':set the default locale for collate:' \
512
        --lc-collate=':set the default locale for collate:' \
452
        --lc-ctype=':set the default locale for ctype:' \
513
        --lc-ctype=':set the default locale for ctype:' \
Lines 459-472 Link Here
459
        {-T+,--text-search-config=}'[default text search configuration]' \
520
        {-T+,--text-search-config=}'[default text search configuration]' \
460
        {-U+,--username=NAME}':database superuser name:' \
521
        {-U+,--username=NAME}':database superuser name:' \
461
        {-W,--pwprompt}'[prompt for a password for the new superuser]' \
522
        {-W,--pwprompt}'[prompt for a password for the new superuser]' \
462
        {-X+,--xlogdir=}':location for the transaction log directory:_files' \
523
        {-X+,--waldir=}':location for the write-ahead log directory:_files' \
524
        --xlogdir=':location for the transaction log directory (unsupported since PostgreSQL 10):_files' \
525
        --wal-segsize='[size of WAL segments, in megabytes]' \
463
        {-d,--debug}'[generate lots of debugging output]' \
526
        {-d,--debug}'[generate lots of debugging output]' \
527
        --discard-caches'[set debug_discard_caches=1]' \
464
        -L+':where to find the input files:_files' \
528
        -L+':where to find the input files:_files' \
465
        {-k,--data-checksums}':use data page checksums:' \
529
        {-n,--no-clean}'[do not clean up after errors]' \
466
        {-n,--noclean}'[do not clean up after errors]' \
530
        {-N,--no-sync}':do not wait for changes to be written safely to disk:' \
467
        {-N,--nosync}':do not wait for changes to be written safely to disk:' \
531
        --instructions'[do not print instructions for next steps]' \
468
        {-s,--show}'[show internal settings]' \
532
        {-s,--show}'[show internal settings]' \
469
        {-S,--sync-only}'[only sync data directory]' \
533
        {-S,--sync-only}'[only sync data directory]' \
534
        {-V,--version}'[output version information, then exit]' \
535
        {-\?,--help}'[display help]' \
470
        ':location for this database cluster:_files'
536
        ':location for this database cluster:_files'
471
}
537
}
472
538
Lines 479-484 Link Here
479
        {-p+,--port=}':database port number:_pgsql_ports'
545
        {-p+,--port=}':database port number:_pgsql_ports'
480
        {-U+,--username=}':connect as user:_pgsql_users'
546
        {-U+,--username=}':connect as user:_pgsql_users'
481
        {-W,--password}'[prompt for password]'
547
        {-W,--password}'[prompt for password]'
548
        {-w,--no-password}'[never prompt for password]'
482
        --role='[do SET ROLE before restore]'
549
        --role='[do SET ROLE before restore]'
483
    )
550
    )
484
551
Lines 501-506 Link Here
501
    case "$service" in
568
    case "$service" in
502
        psql)     _psql "$@"     ;;
569
        psql)     _psql "$@"     ;;
503
        pg_dump)  _pg_dump "$@"  ;;
570
        pg_dump)  _pg_dump "$@"  ;;
571
        pg_dumpall)  _pg_dumpall "$@"  ;;
504
        pg_restore)  _pg_restore "$@" ;;
572
        pg_restore)  _pg_restore "$@" ;;
505
        createdb) _createdb "$@" ;;
573
        createdb) _createdb "$@" ;;
506
        dropdb)   _dropdb "$@"   ;;
574
        dropdb)   _dropdb "$@"   ;;
(-)zsh-completions-0.32.0/src/_pm2 (-2 / +2 lines)
Lines 129-135 Link Here
129
)
129
)
130
logs_options=(
130
logs_options=(
131
    '--json[json log output]'
131
    '--json[json log output]'
132
    '--format[formated log output]'
132
    '--format[formatted log output]'
133
    '--raw[raw output]'
133
    '--raw[raw output]'
134
    '--err[only shows error output]'
134
    '--err[only shows error output]'
135
    '--out[only shows standard output]'
135
    '--out[only shows standard output]'
Lines 150-156 Link Here
150
    stop|restart|delete|reload|reset)
150
    stop|restart|delete|reload|reset)
151
        _arguments $id_all_comp && return 0
151
        _arguments $id_all_comp && return 0
152
        ;;
152
        ;;
153
    env|inspect|monitor|unmonitor|discribe)
153
    env|inspect|monitor|unmonitor|describe)
154
        _arguments $id_comp && return 0
154
        _arguments $id_comp && return 0
155
        ;;
155
        ;;
156
    deploy|startOrRestart|startOrReload)
156
    deploy|startOrRestart|startOrReload)
(-)zsh-completions-0.32.0/src/_pygmentize (-1 / +1 lines)
Lines 75-81 Link Here
75
}
75
}
76
76
77
77
78
(( $+functions[_pygmentize_get_formatters] )) ||
78
(( $+functions[_get_formatters] )) ||
79
_get_formatters() {
79
_get_formatters() {
80
  local cache_policy
80
  local cache_policy
81
  zstyle -s ":completion:${curcontext}:" cache-policy cache_policy
81
  zstyle -s ":completion:${curcontext}:" cache-policy cache_policy
(-)zsh-completions-0.32.0/src/_scala (-1 / +1 lines)
Lines 155-161 Link Here
155
  "-Yinfer-argument-types[Infer types for arguments of overridden methods]"
155
  "-Yinfer-argument-types[Infer types for arguments of overridden methods]"
156
  "-Yinline[Perform inlining when possible]"
156
  "-Yinline[Perform inlining when possible]"
157
  "-Yinline-handlers[Perform exception handler inlining when possible]"
157
  "-Yinline-handlers[Perform exception handler inlining when possible]"
158
  "-Yinline-warnings[Emit inlining warnings (normally surpressed due to high volume)]"
158
  "-Yinline-warnings[Emit inlining warnings (normally suppressed due to high volume)]"
159
  "-Yinvalidate+[Invalidate classpath entry before run]:classpath entry"
159
  "-Yinvalidate+[Invalidate classpath entry before run]:classpath entry"
160
  "-Ylinearizer\:-[Linearizer to use (default\: rpo)]:linearizer:(normal dfs rpo dump)"
160
  "-Ylinearizer\:-[Linearizer to use (default\: rpo)]:linearizer:(normal dfs rpo dump)"
161
  "-Ylog-classpath[Output information about what classpath is being applied]"
161
  "-Ylog-classpath[Output information about what classpath is being applied]"
(-)zsh-completions-0.32.0/src/_stack (-22 / +61 lines)
Lines 26-66 Link Here
26
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
# ------------------------------------------------------------------------------
27
# ------------------------------------------------------------------------------
28
# Description
28
# Description
29
# -----------
29
# ------------------------------------------------------------------------------
30
#
30
#
31
#  Completion script for stack (https://github.com/commercialhaskell/stack).
31
# Completion script for stack (https://github.com/commercialhaskell/stack).
32
#
32
#
33
# ------------------------------------------------------------------------------
33
# ------------------------------------------------------------------------------
34
# Authors
34
# Authors
35
# -------
35
# ------------------------------------------------------------------------------
36
#
36
#
37
#  * Toshiki Teramura <toshiki.teramura@gmail.com>
37
# * Toshiki Teramura <toshiki.teramura@gmail.com>
38
# * Nikita Ursol <nikita20001116@gmail.com>
38
#
39
#
39
# ------------------------------------------------------------------------------
40
# ------------------------------------------------------------------------------
40
41
41
_stack () {
42
_stack () {
42
    _arguments \
43
    _arguments \
43
        --version'[display version information]' \
44
        --help'[show usage information]' \
44
        --help'[display usage information]' \
45
        --version'[show version]' \
45
        '--docker*''[run "stack --docker-help" for details]' \
46
        --numeric-version'[show only version number]' \
47
        --hpack-numeric-version"[show only hpack's version number]" \
48
        '--docker[enable using a Docker container, run "stack --docker-help" for details]' \
49
        '--no-docker[disable using a Docker container, run "stack --docker-help" for details]' \
50
        '--nix[enable use of a Nix-shell, run "stack --nix-help" for details]' \
51
        '--no-nix[disable use of a Nix-shell, run "stack --nix-help" for details]' \
46
        --verbosity'[verbosity: silent, error, warn, info, debug]' \
52
        --verbosity'[verbosity: silent, error, warn, info, debug]' \
47
        {-v,--verbose}'[enable verbose mode: verbosity level "debug"]' \
53
        {-v,--verbose}'[enable verbose mode: verbosity level "debug"]' \
48
        --system-ghc'[enable using the system installed GHC (on the PATH) if available and a matching version]' \
54
        --silent'[enable silent mode: verbosity level "silent"]' \
49
        --no-system-ghc'[disable using the system installed GHC (on the PATH) if available and a matching version]' \
55
        --time-in-log'[enable inclusion of timings in logs, to use diff with logs]' \
50
        --install-ghc'[enable downloading and installing GHC if necessary (can be done manually with stack setup)]' \
56
        --no-time-in-log'[disable inclusion of timings in logs, to use diff with logs]' \
51
        --no-install-ghc'[disable downloading and installing GHC if necessary (can be done manually with stack setup)]' \
57
        --stack-root'[absolute path to the global stack root directory]' \
58
        --work-dir'[relative path of work directory]' \
59
        --system-ghc'[enable using the system installed GHC if available and a matching version]' \
60
        --no-system-ghc'[disable using the system installed GHC if available and a matching version]' \
61
        --install-ghc'[enable downloading and installing GHC if necessary]' \
62
        --no-install-ghc'[disable downloading and installing GHC if necessary]' \
52
        --arch'[system architecture, e.g. i386, x86_64]' \
63
        --arch'[system architecture, e.g. i386, x86_64]' \
53
        --os'[operating system, e.g. linux, windows]' \
64
        --ghc-variant'[specialized GHC variant, e.g. integersimple (incompatible with --system-ghc)]' \
65
        --ghc-build'[specialized GHC build, e.g. "gmp4" or "standard" (usually auto-detected)]' \
54
        {-j,--jobs}'[number of concurrent jobs to run]' \
66
        {-j,--jobs}'[number of concurrent jobs to run]' \
55
        --extra-include-dirs'[extra directories to check for C header files]' \
67
        --extra-include-dirs'[extra directories to check for C header files]' \
56
        --extra-lib-dirs'[extra directories to check for libraries]' \
68
        --extra-lib-dirs'[extra directories to check for libraries]' \
69
        --with-gcc'[use custom path to gcc executable]' \
70
        --with-hpack'[use custom path to hpack executable]' \
57
        --skip-ghc-check'[enable skipping the GHC version and architecture check]' \
71
        --skip-ghc-check'[enable skipping the GHC version and architecture check]' \
58
        --no-skip-ghc-check'[disable skipping the GHC version and architecture check]' \
72
        --no-skip-ghc-check'[disable skipping the GHC version and architecture check]' \
59
        --skip-msys'[enable skipping the local MSYS installation (Windows only)]' \
73
        --skip-msys'[enable skipping the local MSYS installation (Windows only)]' \
60
        --no-skip-msys'[disable skipping the local MSYS installation (Windows only)]' \
74
        --no-skip-msys'[disable skipping the local MSYS installation (Windows only)]' \
75
        --local-bin-path'[install binaries to specified location]' \
76
        --setup-info-yaml'[alternate URL or relative / absolute path for stack dependencies]' \
77
        --modify-code-page'[enable setting the codepage to support UTF-8 (Windows only)]' \
78
        --no-modify-code-page'[disable setting the codepage to support UTF-8 (Windows only)]' \
79
        --allow-different-user'[enable permission for non-owners to use a stack installation (POSIX only)]' \
80
        --no-allow-different-user'[disable permission for non-owners to use a stack installation (POSIX only)]' \
81
        --dump-logs'[enable dump the build output logs for local packages to the console]' \
82
        --no-dump-logs'[disable dump the build output logs for local packages to the console]' \
83
        {--color,--colour}'[specify when to use color in output; accepts "always", "never", "auto"]' \
61
        --resolver'[override resolver in project file]' \
84
        --resolver'[override resolver in project file]' \
62
        --no-terminal'[override terminal detection in the case of running in a false terminal]' \
85
        --terminal'[enable overriding terminal detection in the case of running in a false terminal]' \
63
        --stack-yaml'[override project stack.yaml file (overrides any STACK_YAML environment variable)]' \
86
        --no-terminal'[disable overriding terminal detection in the case of running in a false terminal]' \
87
        {--stack-colors,--stack-colours}"[specify stack's output styles]" \
88
        --terminal-width'[specify the width of the terminal, used for pretty-print messages]' \
89
        --stack-yaml'[override project stack.yaml file]' \
90
        --lock-file'[specify how to interact with lock files.]' \
64
        '*: :__stack_modes'
91
        '*: :__stack_modes'
65
}
92
}
66
93
Lines 73-94 Link Here
73
        'bench[build and benchmark the project(s) in this directory/configuration]' \
100
        'bench[build and benchmark the project(s) in this directory/configuration]' \
74
        'haddock[generate haddocks for the project(s) in this directory/configuration]' \
101
        'haddock[generate haddocks for the project(s) in this directory/configuration]' \
75
        'new[create a brand new project]' \
102
        'new[create a brand new project]' \
76
        'init[initialize a stack project based on one or more cabal packages]' \
103
        'templates[show how to find templates available for "stack new".]' \
77
        'solver[use a dependency solver to try and determine missing extra-deps]' \
104
        'init[create stack project config from cabal or hpack package specifications]' \
78
        'setup[get the appropriate ghc for your project]' \
105
        'setup[get the appropriate ghc for your project]' \
79
        'path[print out handy path information]' \
106
        'path[print out handy path information]' \
107
        "ls[list command. (supports snapshots, dependencies and stack's styles)]" \
80
        'unpack[unpack one or more packages locally]' \
108
        'unpack[unpack one or more packages locally]' \
81
        'update[update the package index]' \
109
        'update[update the package index]' \
82
        'upgrade[upgrade to the latest stack (experimental)]' \
110
        'upgrade[upgrade to the latest stack]' \
83
        'upload[upload a package to Hackage]' \
111
        'upload[upload a package to Hackage]' \
112
        'sdist[create source distribution tarballs]' \
84
        'dot[visualize your projects dependency graph using Graphviz dot]' \
113
        'dot[visualize your projects dependency graph using Graphviz dot]' \
85
        'exec[execute a command]' \
86
        'ghc[run ghc]' \
114
        'ghc[run ghc]' \
87
        'ghci[run ghci in the context of project(s)]' \
115
        'hoogle[run hoogle, the Haskell API search engine.]' \
88
        'ide[run ide-backend-client with the correct arguments]' \
116
        'exec[execute a command]' \
117
        'run[build and run an executable.]' \
118
        'ghci[run ghci in the context of package(s) (experimental)]' \
119
        "repl[run ghci in the context of package(s) (experimental) (alias for 'ghci')]" \
89
        'runghc[run runghc]' \
120
        'runghc[run runghc]' \
90
        'clean[clean the local packages]' \
121
        "runhaskell[run runghc (alias for 'runghc')]" \
91
        'docker[subcommands specific to Docker use]'
122
        'script[run a Stack Script]' \
123
        'eval[evaluate some haskell code inline.]' \
124
        'clean[delete build artefacts for the project packages.]' \
125
        'purge[delete the project stack working directories.]' \
126
        'query[query general build information (experimental)]' \
127
        'ide[ide-specific commands]' \
128
        'docker[subcommands specific to Docker use]' \
129
        'config[subcommands for accessing and modifying configuration values]' \
130
        'hpc[subcommands specific to Haskell Program Coverage]'
92
131
93
}
132
}
94
133
(-)zsh-completions-0.32.0/src/_tmuxp (-1 / +1 lines)
Lines 93-99 Link Here
93
    '-2[Force tmux to assume the terminal supports 256 colors]' \
93
    '-2[Force tmux to assume the terminal supports 256 colors]' \
94
    '-8[Like -2, but indicates that the terminal supports 88 colors]'
94
    '-8[Like -2, but indicates that the terminal supports 88 colors]'
95
95
96
  # Cant get the options to be recognized when there are sessions that has
96
  # Can't get the options to be recognized when there are sessions that has
97
  # a dash.
97
  # a dash.
98
98
99
  case $state in
99
  case $state in
(-)zsh-completions-0.32.0/src/_tox (-2 / +8 lines)
Lines 28-42 Link Here
28
  '(- 1 *)--version[show version and exit]' \
28
  '(- 1 *)--version[show version and exit]' \
29
  '(- 1 *)'{-h,--help}'[show help options]' \
29
  '(- 1 *)'{-h,--help}'[show help options]' \
30
  '(- 1 *)'{--hi,--help-ini}'[show help about ini-names]' \
30
  '(- 1 *)'{--hi,--help-ini}'[show help about ini-names]' \
31
  '*-v[increase verbosity of reporting output]' \
31
  '*'{-v,--verbose}'[increase verbosity of reporting output]' \
32
  '*-q[progressively silence reporting output]' \
32
  '*-q[progressively silence reporting output]' \
33
  '(- 1 *)--showconfig[show configuration information for all environments]' \
33
  '(- 1 *)--showconfig[show configuration information for all environments]' \
34
  '(- 1 *)'{-l,--listenvs}'[show list of test environments]' \
34
  '(- 1 *)'{-l,--listenvs}'[show list of test environments]' \
35
  '(- 1 *)'{-a,--listenvs-all}'[show list of all defined environments]' \
35
  '(- 1 *)'{-a,--listenvs-all}'[show list of all defined environments]' \
36
  '-c[config file name or directory with "tox.ini" file]:config path:_files -g "*.ini"' \
36
  '-c[config file name or directory with "tox.ini" file]:config path:_files -g "*.ini"' \
37
  '-e[work against specified environments]: :_tox_envs_list' \
37
  '-e[work against specified environments]: :_tox_envs_list' \
38
  "--devenv[sets up a development environment at ENVDIR based on the env's tox configuration specified by '-e' ]: :" \
38
  '--notest[skip invoking test commands]' \
39
  '--notest[skip invoking test commands]' \
39
  '--sdistonly[only perform the sdist packaging activity]' \
40
  '--sdistonly[only perform the sdist packaging activity]' \
41
  '--skip-pkg-install[skip package installation for this run]' \
42
  '(-p --parallel)'{-p,--parallel}'[run tox environments in parallel]: :' \
43
  '(-o --parallel-live)'{-o,--parallel-live}'[connect to stdout while running environments]' \
40
  '--parallel--safe-build[ensure two tox builds can run in parallel]' \
44
  '--parallel--safe-build[ensure two tox builds can run in parallel]' \
41
  '--installpkg[ensure two tox builds can run in parallel]:package path:_files -/' \
45
  '--installpkg[ensure two tox builds can run in parallel]:package path:_files -/' \
42
  '--develop[install package in the venv using "setup.py develop"]' \
46
  '--develop[install package in the venv using "setup.py develop"]' \
Lines 44-54 Link Here
44
  '--pre[install pre-releases and development versions of dependencies]' \
48
  '--pre[install pre-releases and development versions of dependencies]' \
45
  '(-r --recreate)'{-r,--recreate}'[force recreation of virtual environments]' \
49
  '(-r --recreate)'{-r,--recreate}'[force recreation of virtual environments]' \
46
  '--result-json[write a json file with detailed information about all commands and results involved]:JSON file path:_files -g "*.json"' \
50
  '--result-json[write a json file with detailed information about all commands and results involved]:JSON file path:_files -g "*.json"' \
51
  '--discover[for python discovery first try the python executables under these paths]:' \
47
  '--hashseed[set PYTHONHASHSEED to SEED before running commands]:seed' \
52
  '--hashseed[set PYTHONHASHSEED to SEED before running commands]:seed' \
48
  '*--force-dep[forces a certain version of one of the dependencies when configuring the virtual environment]:pip requirement' \
53
  '*--force-dep[forces a certain version of one of the dependencies when configuring the virtual environment]:pip requirement' \
49
  '--sitepackages[override sitepackages setting to True in all envs]' \
54
  '--sitepackages[override sitepackages setting to True in all envs]' \
50
  '--alwayscopy[override alwayscopy setting to True in all envs]' \
55
  '--alwayscopy[override alwayscopy setting to True in all envs]' \
51
  '--skip-missing-interpreters[do not fail tests for missing interpreters]: :(config true false)' \
56
  '--no-provision[do not perform provision, but fail and if a path was provided write provision metadata as JSON to it]:JSON file path:_files -g "*.json"' \
57
  '(-s --skip-missing-interpreters)'{-s,--skip-missing-interpreters}'[do not fail tests for missing interpreters]: :(config true false)' \
52
  '--workdir[tox working directory]: :_files -/' \
58
  '--workdir[tox working directory]: :_files -/' \
53
  '*: :_guard "^-*" command positional substitution arguments'
59
  '*: :_guard "^-*" command positional substitution arguments'
54
60
(-)zsh-completions-0.32.0/src/_udisksctl (-2 / +2 lines)
Lines 52-58 Link Here
52
_paths() {
52
_paths() {
53
    local -a _path_list
53
    local -a _path_list
54
54
55
    for _path in $(_call_program paths "udisksctl complete \"udisksctl $words\" $CURSOR"); do
55
    for _path in $(_call_program paths "udisksctl complete \"udisksctl $words\" $CURSOR" | sed 's/:/\\:/g'); do
56
        _path_list+=$_path
56
        _path_list+=$_path
57
    done
57
    done
58
58
Lines 145-151 Link Here
145
                power-off)
145
                power-off)
146
                    _arguments \
146
                    _arguments \
147
                        {-p,--object-path}'[object path for ATA device]:object path:_paths' \
147
                        {-p,--object-path}'[object path for ATA device]:object path:_paths' \
148
                        {-b,--block-device}'[device file for ATA devic]:block device:_paths' \
148
                        {-b,--block-device}'[device file for ATA device]:block device:_paths' \
149
                        "(--no-user-interaction)--no-user-interaction[don't authenticate the user if needed]" && ret=0
149
                        "(--no-user-interaction)--no-user-interaction[don't authenticate the user if needed]" && ret=0
150
                ;;
150
                ;;
151
                smart-simulate)
151
                smart-simulate)
(-)zsh-completions-0.32.0/src/_virtualbox (-2 / +19 lines)
Lines 1-4 Link Here
1
#compdef VBoxManage=vboxmanage VBoxHeadless=vboxheadless
1
#compdef VBoxManage=vboxmanage VBoxHeadless=vboxheadless vboxmanage=vboxmanage
2
# ------------------------------------------------------------------------------
2
# ------------------------------------------------------------------------------
3
# Description
3
# Description
4
# -----------
4
# -----------
Lines 21-26 Link Here
21
	done
21
	done
22
}
22
}
23
23
24
_vboxnatnets() {
25
  vboxmanage list natnetworks | awk -F: '/NetworkName:/{print $2}'| while read natnet; do
26
    _wanted 'natnet' expl 'natnet' compadd $natnet
27
  done
28
}
29
24
# Roughly guess command options
30
# Roughly guess command options
25
_vboxcommandoptions() {
31
_vboxcommandoptions() {
26
	cmd="$1"
32
	cmd="$1"
Lines 127-132 Link Here
127
		'hostonlyif:change the IP configuration of a host-only network interface'
133
		'hostonlyif:change the IP configuration of a host-only network interface'
128
		'dhcpserver:control the DHCP server that is built into VirtualBox'
134
		'dhcpserver:control the DHCP server that is built into VirtualBox'
129
		'extpack:add or remove VirtualBox extension packs'
135
		'extpack:add or remove VirtualBox extension packs'
136
		'natnetwork:add,modify,remove or start NatNetworks'
130
	)
137
	)
131
138
132
	local context state line expl
139
	local context state line expl
Lines 143-149 Link Here
143
		list)
150
		list)
144
			_arguments \
151
			_arguments \
145
				'--long' \
152
				'--long' \
146
				':list option:(vms runningvms ostypes hostdvds hostfloppies bridgedifs hostonlyifs dhcpservers hostinfo hostcpuids hddbackends hdds dvds floppies usbhost usbfilters systemproperties extpacks)'
153
				':list option:(vms runningvms ostypes hostdvds hostfloppies bridgedifs hostonlyifs dhcpservers hostinfo hostcpuids hddbackends hdds dvds floppies usbhost usbfilters systemproperties natnetworks extpacks)'
147
		;;
154
		;;
148
		showvminfo)
155
		showvminfo)
149
			_arguments \
156
			_arguments \
Lines 266-271 Link Here
266
				'--readonly' \
273
				'--readonly' \
267
				'--automount'
274
				'--automount'
268
		;;
275
		;;
276
    natnetwork)
277
      _arguments \
278
        ':action:(add modify remove start stop)' \
279
        '--netname:natnet:_vboxnatnets' \
280
        '--dhcp:bool:(on off)' \
281
        '--ipv6:bool:(on off)' \
282
        '--enable' \
283
        '--disable'
284
      ;;
285
269
	esac
286
	esac
270
	return 1
287
	return 1
271
}
288
}
(-)zsh-completions-0.32.0/src/_vnstat (-7 / +15 lines)
Lines 28-34 Link Here
28
# Description
28
# Description
29
# -----------
29
# -----------
30
#
30
#
31
#  Completion script for vnstat 1.10
31
#  Completion script for vnstat 2.6
32
#
32
#
33
# ------------------------------------------------------------------------------
33
# ------------------------------------------------------------------------------
34
# Authors
34
# Authors
Lines 44-79 Link Here
44
local period="-d --days -h --hours -m --months -w --weeks"
44
local period="-d --days -h --hours -m --months -w --weeks"
45
45
46
_arguments -C : \
46
_arguments -C : \
47
  '--cleartop[remove all top 10 entries]' \
47
  '--add[create database entry for interface specified]' \
48
  '(-b --begin)'{-b,--begin}'[begin the list output with a specific date]:date:' \
48
  '--config[specify alternate configuration file]:file:_files' \
49
  '--config[specify alternate configuration file]:file:_files' \
49
  "($period)"{-d,--days}'[show traffic for days]' \
50
  "($period)"{-d,--days}'[show traffic for days]' \
50
  "($period)"{-h,--hours}'[show traffic for last 24 hours]' \
51
  "($period)"{-h,--hours}'[show traffic for last 24 hours]' \
51
  "($period)"{-m,--months}'[show traffic for months]' \
52
  "($period)"{-m,--months}'[show traffic for months]' \
52
  "($period)"{-w,--weeks}'[show traffic for 7 days]' \
53
  "($period)"{-w,--weeks}'[show traffic for 7 days]' \
54
  "($period)"{-y,--years}'[show traffic statistics for the last year]' \
55
  "($period)"{-5,--fiveminutes}'[show traffic statistic with a 5 minute resolution for the last hours]' \
53
  '--dbdir[specify database directory]:directory:_files -/' \
56
  '--dbdir[specify database directory]:directory:_files -/' \
54
  '(-D --debug)'{-D,--debug}'[show additional debug output]' \
57
  '(-D --debug)'{-D,--debug}'[show additional debug output]' \
58
  '(-e --end)'{-e,--end}'[end the list output with a specific date]:date:' \
55
  '--delete[delete database and stop monitoring selected interface]' \
59
  '--delete[delete database and stop monitoring selected interface]' \
56
  '--dumpdb[dump database in parseable format]' \
60
  '--dumpdb[dump database in parseable format]' \
57
  '(--disable)--enable[enable updates for selected interface]' \
61
  '(--disable)--enable[enable updates for selected interface]' \
58
  '(--enable)--disable[disable updates for selected interface]' \
62
  '(--enable)--disable[disable updates for selected interface]' \
63
  '(-hg --hoursgraph)'{-hg,--hoursgraph}'[show traffic statistics using a bar graph]' \
59
  '(-i --iface)'{-i,--iface}'[specify interface for actions]:interface:->interface' \
64
  '(-i --iface)'{-i,--iface}'[specify interface for actions]:interface:->interface' \
60
  '--iflist[list available interfaces]' \
65
  '--iflist[list available interfaces]' \
66
  '--limit[set the maximum number of shown entries]:limit:' \
61
  '(-l --live)'{-l,--live}'[display current transfer rate]:mode:->live' \
67
  '(-l --live)'{-l,--live}'[display current transfer rate]:mode:->live' \
68
  '--json[show database content in json format]' \
62
  '--locale[specify locale]:locale:' \
69
  '--locale[specify locale]:locale:' \
63
  '--nick[set nickname for alias]:nickname:' \
70
  '--nick[set nickname for alias]:nickname:' \
64
  '--oneline[traffic summary in one-line, parseable format]' \
71
  '--oneline[traffic summary in one-line, parseable format]' \
65
  '(-q --query)'{-q,--query}'[force database query mode]' \
72
  '(-q --query)'{-q,--query}'[force database query mode]' \
73
  '--remove[delete the database entry for the interface specified]' \
74
  '--rename[rename the interface specified in the database with new name]' \
66
  '(-r --reset)'{-r,--reset}'[reset internal counters]' \
75
  '(-r --reset)'{-r,--reset}'[reset internal counters]' \
67
  '--rebuildtotal[reset total traffic counters]' \
76
  '--setalias[set alias as an alias for the selected interface]:alias:' \
68
  '(-ru --rateunit)'{-ru,--rateunit}'[swap configured rate unit]' \
77
  '(-ru --rateunit)'{-ru,--rateunit}'[swap configured rate unit]' \
69
  '--savemerged[write result of database merge]'  \
70
  '(-s --short)'{-s,--short}'[use short output mode]' \
78
  '(-s --short)'{-s,--short}'[use short output mode]' \
79
  '--showconfig[show current configuration]' \
71
  '--style[modify content and style of output]:style:->style' \
80
  '--style[modify content and style of output]:style:->style' \
72
  '--sync[synchronize internal counters]' \
81
  '--sync[synchronize internal counters]' \
73
  '--testkernel[test kernel boot time information]' \
82
  '--testkernel[test kernel boot time information]' \
74
  '(-t --top10)'{-t,--top10}'[show all time top 10 traffic days]' \
83
  '(-t --top)'{-t,--top}'[show all time top traffic days]' \
75
  '-tr[calculate amount of traffic in given time]:seconds:' \
84
  '(-tr --traffic)'{-tr,--traffic}'[calculate amount of traffic in given time]:seconds:' \
76
  '(-u --update)'{-u,--update}'[update databases]' \
77
  '--xml[show database content in XML format]' \
85
  '--xml[show database content in XML format]' \
78
  '(-)'{-v,--version}'[show current version]' \
86
  '(-)'{-v,--version}'[show current version]' \
79
  '(-)'{-\?,--help}'[show command summary]' \
87
  '(-)'{-\?,--help}'[show command summary]' \
(-)zsh-completions-0.32.0/src/_xinput (-1 / +1 lines)
Lines 114-120 Link Here
114
		[[ -n "$i" ]] || continue
114
		[[ -n "$i" ]] || continue
115
		xinput_devices_id+=($i)
115
		xinput_devices_id+=($i)
116
		name="$(xinput list --name-only $i)"
116
		name="$(xinput list --name-only $i)"
117
		xinput_devices_name+=($name)
117
		xinput_devices_name+=(${name//:/\\:})
118
		xinput_devices+=($i\:$name)
118
		xinput_devices+=($i\:$name)
119
	done
119
	done
120
	xinput_devices+=($xinput_devices_name)
120
	xinput_devices+=($xinput_devices_name)
(-)zsh-completions-0.32.0/src/_yarn (-19 / +56 lines)
Lines 85-120 Link Here
85
  'upgrade-interactive:Interactively upgrade packages'
85
  'upgrade-interactive:Interactively upgrade packages'
86
)
86
)
87
87
88
_yarn_find_package_json() {
89
  local dir=$(cd "$1" && pwd)
90
91
  while true
92
  do
93
    if [[ -e "${dir}/package.json" ]]; then
94
      echo "${dir}/package.json"
95
      return
96
    fi
97
98
    if [[ $dir == '/' ]]; then
99
      break
100
    fi
101
102
    dir=$(dirname $dir)
103
  done
104
}
105
88
_yarn_commands_scripts() {
106
_yarn_commands_scripts() {
89
  local -a scripts
107
  local -a scripts binaries
108
  local packageJson
109
90
  if [[ -n $opt_args[--cwd] ]]; then
110
  if [[ -n $opt_args[--cwd] ]]; then
91
    scripts=($(cd $opt_args[--cwd] && yarn run --json 2>/dev/null | sed -E '/Commands available|possibleCommands/!d;s/.*Commands available from binary scripts: ([^"]+)".*/\1/;s/.*"items":\[([^]]+).*/\1/;s/[" ]//g' | tr , '\n' | sed -e 's/:/\\:/g'))
111
    packageJson=$(_yarn_find_package_json $opt_args[--cwd])
112
    binaries=($(cd $opt_args[--cwd] && echo node_modules/.bin/*(x:t)))
92
  else
113
  else
93
    scripts=($(yarn run --json 2>/dev/null | sed -E '/Commands available|possibleCommands/!d;s/.*Commands available from binary scripts: ([^"]+)".*/\1/;s/.*"items":\[([^]]+).*/\1/;s/[" ]//g' | tr , '\n' | sed -e 's/:/\\:/g'))
114
    packageJson=$(_yarn_find_package_json $pwd)
115
    binaries=($(echo node_modules/.bin/*(x:t)))
94
  fi
116
  fi
95
117
96
  _describe 'command or script' _commands -- _global_commands -- scripts
118
  if [[ -n $packageJson ]]; then
119
    scripts=($(cat "$packageJson" | perl -0777 -MJSON::PP -n -E '$r=decode_json($_); do{($k=$_)=~s/:/\\:/g;say $k}for sort keys %{$r->{scripts}}'))
120
  fi
121
122
  _describe 'command or script' _commands -- _global_commands -- scripts -- binaries
97
}
123
}
98
124
99
_yarn_scripts() {
125
_yarn_scripts() {
100
  local -a commands binaries scripts
126
  local -a binaries scripts
101
  local -a scriptNames scriptCommands
127
  local -a commands
102
  local i runJSON
128
  local packageJson
103
129
104
  if [[ -n $_yarn_run_cwd ]]; then
130
  if [[ -n $_yarn_run_cwd ]]; then
105
    runJSON=$(cd $_yarn_run_cwd && yarn run --json 2>/dev/null)
131
    packageJson=$(_yarn_find_package_json $_yarn_run_cwd)
132
    if [[ -d "${_yarn_run_cwd}/node_modules" ]]; then
133
      binaries=($(cd $_yarn_run_cwd && echo node_modules/.bin/*(x:t)))
134
    else
135
      binaries=($(cd $_yarn_run_cwd && yarn bin | perl -wln -e 'm{^[^:]+: (\S+)$} and print $1'))
136
    fi
106
  else
137
  else
107
    runJSON=$(yarn run --json 2>/dev/null)
138
    packageJson=$(_yarn_find_package_json $pwd)
139
    if [[ -d node_modules ]]; then
140
      binaries=($(echo node_modules/.bin/*(x:t)))
141
    else
142
      binaries=($(yarn bin | perl -wln -e 'm{^[^:]+: (\S+)$} and print $1'))
143
    fi
108
  fi
144
  fi
109
  # Some sed utilities (e.g. Mac OS / BSD) don't interpret `\n` in a replacement
110
  # pattern as a newline. See https://superuser.com/q/307165
111
  binaries=($(sed -E '/Commands available/!d;s/.*Commands available from binary scripts: ([^"]+)".*/\1/;s/.*"items":\[([^]]+).*/\1/;s/[" ]//g;s/:/\\:/g;s/,/\'$'\n/g' <<< "$runJSON"))
112
  scriptNames=($(sed -E '/possibleCommands/!d;s/.*"items":\[([^]]+).*/\1/;s/[" ]//g;s/:/\\:/g;s/,/\'$'\n/g' <<< "$runJSON"))
113
  scriptCommands=("${(@f)$(sed -E '/possibleCommands/!d;s/.*"hints":\{(.+")\}.*/\1/;s/"[^"]+"://g;s/:/\\:/g;s/","/\'$'\n/g;s/(^"|"$)//g' <<< "$runJSON")}")
114
145
115
  for (( i=1; i <= $#scriptNames; i++ )); do
146
  if [[ -n $packageJson ]]; then
116
    scripts+=("${scriptNames[$i]}:${scriptCommands[$i]}")
147
    scripts=("${(@f)$(cat ${packageJson} | perl -0777 -MJSON::PP -n -E '%r=%{decode_json($_)->{scripts}}; do{$k=$_;($e=$k)=~s/:/\\:/g; printf "$e:$r{$k}\n"} for sort keys %r')}")
117
  done
148
  fi
118
149
119
  commands=('env' $scripts $binaries)
150
  commands=('env' $scripts $binaries)
120
  _describe 'command' commands
151
  _describe 'command' commands
Lines 137-143 Link Here
137
}
168
}
138
169
139
_yarn_workspaces() {
170
_yarn_workspaces() {
140
  local -a workspaces=(${(@f)$(yarn workspaces info |sed -n -e 's/^  "\([^"]*\)": {/\1/p')})
171
  local version=$(yarn --version |sed -n 's|\([0-9]*\).*|\1|p')
172
  local -a workspaces
173
  if [[ $version == "1" ]]; then
174
    workspaces=(${(@f)$(yarn workspaces info |sed -n -e 's/^  "\([^"]*\)": {/\1/p')})
175
  else
176
    workspaces=(${(@f)$(yarn workspaces list --json | sed -n 's|.*"name":"\([^"]*\)"}|\1|p')})
177
  fi
141
  _describe 'workspace' workspaces
178
  _describe 'workspace' workspaces
142
}
179
}
143
180
Lines 157-163 Link Here
157
    '(--emoji)--no-emoji[disable emoji in output]' \
194
    '(--emoji)--no-emoji[disable emoji in output]' \
158
    '(--disable-pnp)'{--enable-pnp,--pnp}"[enable the Plug'n'Play installation]" \
195
    '(--disable-pnp)'{--enable-pnp,--pnp}"[enable the Plug'n'Play installation]" \
159
    '--flat[only allow one version of a package]' \
196
    '--flat[only allow one version of a package]' \
160
    '--focus[Focus on a single workspace by installing remote copies of its sibiling workspaces]' \
197
    '--focus[Focus on a single workspace by installing remote copies of its sibling workspaces]' \
161
    '--force[install and build packages even if they were built before, overwrite lockfile]' \
198
    '--force[install and build packages even if they were built before, overwrite lockfile]' \
162
    "--frozen-lockfile[don't generate a lockfile and fail if an update is needed]" \
199
    "--frozen-lockfile[don't generate a lockfile and fail if an update is needed]" \
163
    '--global-folder=[modules folder]:folder:_files -/' \
200
    '--global-folder=[modules folder]:folder:_files -/' \
(-)zsh-completions-0.32.0/zsh-completions-howto.org (+19 lines)
Lines 1-3 Link Here
1
* Table of Contents                                                     :TOC:
2
- [[#intro][Intro]]
3
- [[#getting-started][Getting started]]
4
  - [[#telling-zsh-which-function-to-use-for-completing-a-command][Telling zsh which function to use for completing a command]]
5
  - [[#completing-generic-gnu-commands][Completing generic gnu commands]]
6
  - [[#copying-completions-from-another-command][Copying completions from another command]]
7
- [[#writing-your-own-completion-functions][Writing your own completion functions]]
8
  - [[#utility-functions][Utility functions]]
9
  - [[#writing-simple-completion-functions-using-_describe][Writing simple completion functions using _describe]]
10
  - [[#writing-completion-functions-using-_alternative][Writing completion functions using _alternative]]
11
  - [[#writing-completion-functions-using-_arguments][Writing completion functions using _arguments]]
12
  - [[#writing-completion-functions-using-_regex_arguments-and-_regex_words][Writing completion functions using _regex_arguments and _regex_words]]
13
  - [[#complex-completions-with-_values-_sep_parts--_multi_parts][complex completions with _values, _sep_parts, & _multi_parts]]
14
  - [[#adding-completion-words-directly-using-compadd][Adding completion words directly using compadd]]
15
- [[#testing--debugging][Testing & debugging]]
16
- [[#gotchas-things-to-watch-out-for][Gotchas (things to watch out for)]]
17
- [[#tips][Tips]]
18
- [[#other-resources][Other resources]]
19
1
* Intro
20
* Intro
2
The official documentation for writing zsh completion functions is difficult to understand, and doesn't give many examples.
21
The official documentation for writing zsh completion functions is difficult to understand, and doesn't give many examples.
3
At the time of writing this document I was able to find a few other tutorials on the web, however those tutorials only
22
At the time of writing this document I was able to find a few other tutorials on the web, however those tutorials only
(-)zsh-completions-0.32.0/zsh-completions.plugin.zsh (-1 / +1 lines)
Line 1 Link Here
1
fpath+="${0:h}/src"
1
fpath+="${0:A:h}/src"

Return to bug 46324