Compare commits

..

1 Commits

Author SHA1 Message Date
F.B. 2270f7d579
Merge 5359bbf0e7 into d1740a30dd 2026-07-22 15:09:01 +08:00
6 changed files with 71 additions and 16 deletions

View File

@ -28,7 +28,7 @@
# Description
# -----------
#
# Completion script for CMake 4.4.0 (https://cmake.org).
# Completion script for CMake 4.3.0 (https://cmake.org).
#
# -------------------------------------------------------------------------
# Authors
@ -75,7 +75,6 @@ local -a cmake_build_options=(
'(-Werror=deprecated)-Wno-error=deprecated[Make deprecated macro and function warnings (not) errors]'
'--preset=[Specify a configure preset]:preset:_cmake_presets'
'--presets-file=[Specify the path to a presets file]:file:_files'
'--list-presets[List available presets]'
'--workflow[Run a workflow preset]'
@ -708,17 +707,13 @@ _cmake_launchers() {
(( $+functions[_cmake_commands] )) ||
_cmake_commands() {
local -a commands=(
'bin2c:Turn a binary file into a C array'
'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 <dir>... directories to destination directory'
'copy_directory_if_different:copy changed content of <dir>... directories to destination directory'
'copy_directory_if_newer:copy newer content of <dir>... directories to destination directory'
'copy_if_different:copy files if it has changed'
'copy_if_newer:copy files if source is newer than destination'
'echo:displays arguments as text'
'echo_append:displays arguments as text but no new line'
'env:run command in a modified environment'

View File

@ -24,7 +24,7 @@
# Description
# -----------
#
# Completion script for cpack 4.4.0 (https://kitware.com/cmake)
# Completion script for cpack 4.3.0 (https://kitware.com/cmake)
#
# ------------------------------------------------------------------------------
# Authors
@ -51,7 +51,6 @@ _cpack() {
'-B[Override/define CPACK_PACKAGE_DIRECTORY]:package_directory:_files -/' \
'--vendor[Override/define CPACK_PACKAGE_VENDOR]:vendor' \
'--preset[Read arguments from a package preset]' \
'--presets-file=[Specify the path to a presets file]:file:_files' \
'--list-presets[List available package preset]' \
'(- *)'{--version,-version}=-'[Print version number and exit]::format:(json-v1)' \
'(- *)--help[Print usage information and exit]' \

View File

@ -24,7 +24,7 @@
# Description
# -----------
#
# Completion script for ctest 4.4.0 (https://kitware.com/cmake)
# Completion script for ctest 4.3.0 (https://kitware.com/cmake)
#
# ------------------------------------------------------------------------------
# Authors
@ -39,7 +39,6 @@ _ctest() {
_arguments \
'--preset=[Read arguments from a test preset]:preset' \
'--presets-file=[Specify the path to a presets file]:file:_files' \
'--list-presets[List available test presets]' \
'(-C --build-config)'{-C,--build-config}'[Choose configuration to test]:config' \
'--progress[Enable short progress output from tests]' \
@ -68,7 +67,6 @@ _ctest() {
'*-D[Define a variable for script mode]:var' \
'(-M --test-model)'{-M,--test-model}'[Set the model for a dashboard]:model' \
'(-T --test-action)'{-T,--test-action}'[Set the dashboard action to perform]' \
'--source-dir[Specify the project source directory]:dir:_files -/' \
'--group[Specify what build group on the dashboard]:group' \
\*{-S,--script,-Sp,--script-new-process}'[Execute a dashboard for a configuration]:script:_files' \
'(-A --add-notes)'{-A,--add-notes}'[Add a notes file with submission]:file:_files' \
@ -84,7 +82,7 @@ _ctest() {
'--resource-spec-file[Set the resource spec file to use]:file:_files' \
'--no-label-summary[Disable timing summary information for labels]' \
'--no-subproject-summary[Disable timing summary information for subprojects]' \
'(--test-dir --build-dir)'{--test-dir,--build-dir}'[Specify the directory in which to look for tests]:dir:_files -/' \
'--test-dir[Specify the directory in which to look for tests]:dir:_files -/' \
'--build-and-test[Configure, build and run a test]' \
'*--build-target[Specify a specific target to build]:target' \
'--build-nocmake[Run the build without running cmake first]' \

View File

@ -57,7 +57,6 @@ _arguments \
'--print-query[print out the current query as first line of output]' \
'--color[color mode(default: auto)]:mode:(auto none)' \
'--height[display height in lines or percentage(e.g. 10, 50%)]:height' \
'(-f --follow)'{-f,--follow}'[follow streaming input, auto-scrolling to keep the newest lines visible]' \
'*::file:_files'
# Local Variables:

View File

@ -28,7 +28,7 @@
# Description
# -----------
#
# Completion script for rubocop 1.88.2 (https://github.com/rubocop/rubocop)
# Completion script for rubocop 1.86.1 (https://github.com/rubocop/rubocop)
#
# ------------------------------------------------------------------------------
# Authors
@ -58,8 +58,6 @@ _arguments \
'(-F --fail-fast)'{-F,--fail-fast}'[Inspect files in order of modification time and stop after the first file containing offenses]' \
'(--disable-pending-cops --enable-pending-cops)--disable-pending-cops[Run without pending cops]' \
'(--disable-pending-cops --enable-pending-cops)--enable-pending-cops[Run with pending cops]' \
'(--disable-all-cops --enable-all-cops)--disable-all-cops[Run with all cops disabled by default, except "Lint/Syntax"]' \
'(--disable-all-cops --enable-all-cops)--enable-all-cops[Run with all enabled]' \
'--ignore-disable-comments[Run cops even when they are disabled locally by a "rubocop:disable" directive]' \
'--force-exclusion[Any files excluded by `Exclude` in configuration files will be excluded, even if given explicitly as arguments]' \
'--only-recognized-file-types[Inspect files given on the command line only if they are listed in configuration]' \

66
src/_sdd Normal file
View File

@ -0,0 +1,66 @@
#compdef sdd
# ------------------------------------------------------------------------------
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of the zsh-users nor the
# names of its contributors may be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for sdd (http://freshmeat.net/projects/sdd/).
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
#
# ------------------------------------------------------------------------------
_values -w 'option' \
'if[specify input file]:input file:_tilde_files' \
'of[specify output file]:output file:_tilde_files' \
'(bs)ibs[input block size]:block size (bytes)' \
'(bs)obs[output block size]:block size (bytes)' \
'(ibs obs)bs[block size]:block size (bytes)' \
'cbs[conversion buffer size]:buffer size (bytes)' \
'skip[input/output initially skipped]:bytes' \
'seek[input/output initially skipped]:bytes' \
'count[number of input blocks to copy]:blocks' \
'-notrunc[do not truncate existing output file]' \
'-pg[print a dot on each write to indicate progress]' \
'-noerror[do not stop on error]' \
'-noerrwrite[do not write blocks not read correctly]' \
"-noseek[don't seek]" \
'try[error retry count]:number' \
'-debug[print debugging messages]' \
'-fill[fill each record with zeros up to obs]' \
'-swab' '-block' '-unblock' '-lcase' '-ucase' '-ascii' '-ebcdic' '-ibm' \
'-help[show help]' \
'-version[show version]'
# 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