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