Compare commits
1 Commits
0a355edd50
...
ad3d4828a2
| Author | SHA1 | Date |
|---|---|---|
|
|
ad3d4828a2 |
|
|
@ -24,7 +24,7 @@
|
||||||
# Description
|
# Description
|
||||||
# -----------
|
# -----------
|
||||||
#
|
#
|
||||||
# Completion script for clang-check v20.1.2 (https://clang.llvm.org/docs/ClangCheck.html)
|
# Completion script for clang-check v15.0.2 (https://clang.llvm.org/docs/ClangCheck.html)
|
||||||
#
|
#
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
# Authors
|
# Authors
|
||||||
|
|
@ -37,8 +37,6 @@
|
||||||
_arguments \
|
_arguments \
|
||||||
'(- *)--help[Display available options]' \
|
'(- *)--help[Display available options]' \
|
||||||
'(- *)--help-hidden[Display available more options]' \
|
'(- *)--help-hidden[Display available more options]' \
|
||||||
'(- *)--help-list[Display list of available options]' \
|
|
||||||
'(- *)--help-list-hidden[Display list of more available options]' \
|
|
||||||
'(- *)--version[Display the version of this program]' \
|
'(- *)--version[Display the version of this program]' \
|
||||||
'--analyze[Run static analysis engine]' \
|
'--analyze[Run static analysis engine]' \
|
||||||
'--analyzer-output-path=[Write output to file]: :_files' \
|
'--analyzer-output-path=[Write output to file]: :_files' \
|
||||||
|
|
@ -51,8 +49,6 @@ _arguments \
|
||||||
'--fix-what-you-can[Apply fix-it advice even in the presence of unfixable errors]' \
|
'--fix-what-you-can[Apply fix-it advice even in the presence of unfixable errors]' \
|
||||||
'--fixit[Apply fix-it advice to the input source]' \
|
'--fixit[Apply fix-it advice to the input source]' \
|
||||||
'-p[Build directory where compile_commands.json is]: :_files -/' \
|
'-p[Build directory where compile_commands.json is]: :_files -/' \
|
||||||
'--print-all-options[Print all option values after command line parsing]' \
|
|
||||||
'--print-options[Print non-default options after command line parsing]' \
|
|
||||||
'--syntax-tree-dump[dump the syntax tree]' \
|
'--syntax-tree-dump[dump the syntax tree]' \
|
||||||
'--tokens-dump[dump the preprocessed tokens]' \
|
'--tokens-dump[dump the preprocessed tokens]' \
|
||||||
'*: :_files'
|
'*: :_files'
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@
|
||||||
# Description
|
# Description
|
||||||
# -----------
|
# -----------
|
||||||
#
|
#
|
||||||
# Completion script for clang-format v20.1.2 (https://clang.llvm.org/docs/ClangFormat.html)
|
# Completion script for clang-format v15.0.2 (https://clang.llvm.org/docs/ClangFormat.html)
|
||||||
#
|
#
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
# Authors
|
# Authors
|
||||||
|
|
@ -41,31 +41,24 @@ _arguments \
|
||||||
'(- *)--help-hidden[Display available more options]' \
|
'(- *)--help-hidden[Display available more options]' \
|
||||||
'(- *)--help-list[Display list of available options]' \
|
'(- *)--help-list[Display list of available options]' \
|
||||||
'(- *)--help-list-hidden[Display list of more available options]' \
|
'(- *)--help-list-hidden[Display list of more available options]' \
|
||||||
'--Wclang-format-violations[Warnings about individual formatting changes needed]' \
|
|
||||||
'--Werror=[If set, changes formatting warnings to errors]' \
|
'--Werror=[If set, changes formatting warnings to errors]' \
|
||||||
'*--Wno-error=[If set, do not error out on the specified warning type]:warn' \
|
'*--Wno-error=[If set, do not error out on the specified warning type]:warn' \
|
||||||
'--assume-filename=[Set filename used to determine the language and to find .clang-format file]: :_files' \
|
'--assume-filename=[Set filename used to determine the language and to find .clang-format file]: :_files' \
|
||||||
'--cursor=[The position of the cursor when invoking clang-format from an editor integration]:pos' \
|
'--cursor=[The position of the cursor when invoking clang-format from an editor integration]:pos' \
|
||||||
'(-n --dry-run)'{-n,--dry-run}'[If set, do not actually make the formatting changes]' \
|
'(-n --dry-run)'{-n,--dry-run}'[If set, do not actually make the formatting changes]' \
|
||||||
'--dump-config[Dump configuration options to stdout and exit]' \
|
'--dump-config[Dump configuration options to stdout and exit]' \
|
||||||
'--fail-on-incomplete-format[If set, fail with exit code 1 on incomplete format]' \
|
|
||||||
'--fallback-style=[The name of the predefined style used as a fallback]: :'"($styles)" \
|
'--fallback-style=[The name of the predefined style used as a fallback]: :'"($styles)" \
|
||||||
'--ferror-limit=[Set the maximum number of clang-format errors to emit before stopping]:limit' \
|
'--ferror-limit=[Set the maximum number of clang-format errors to emit before stopping]:limit' \
|
||||||
'*--files=[Provide a list of files to run clang-format]: :_files' \
|
'*--files=[Provide a list of files to run clang-format]: :_files' \
|
||||||
'--fno-color-diagnostics[If set, not to print diagnostics in color]' \
|
|
||||||
'-i[Inplace edit files, if specified]' \
|
'-i[Inplace edit files, if specified]' \
|
||||||
'--length=[Format a range of this length(in bytes)]:bytes' \
|
'--length=[Format a range of this length(in bytes)]:bytes' \
|
||||||
'--lines=[format a range of lines]:format' \
|
'--lines=[format a range of lines]:format' \
|
||||||
'--list-ignored[List ignored files]' \
|
|
||||||
'--offset=[Format a range starting at this byte offset]' \
|
'--offset=[Format a range starting at this byte offset]' \
|
||||||
'--output-replacements-xml[Output replacements as XML]' \
|
'--output-replacements-xml[Output replacements as XML]' \
|
||||||
'--print-all-options[Print all option values after command line parsing]' \
|
|
||||||
'--print-options[Print non default options after command line parsing]' \
|
|
||||||
'--qualifier-alignment=[If set, overrides the qualifier alignment style determined by the QualifierAlignment style flag]' \
|
'--qualifier-alignment=[If set, overrides the qualifier alignment style determined by the QualifierAlignment style flag]' \
|
||||||
'--sort-includes[If set, overrides the include sorting behavior determined by the SortIncludes style flag]' \
|
'--sort-includes[If set, overrides the include sorting behavior determined by the SortIncludes style flag]' \
|
||||||
'--style=[Set coding style]: :'"($styles)" \
|
'--style=[Set coding style]: :'"($styles)" \
|
||||||
'--verbose[If set, show the list of processed files]' \
|
'--verbose[If set, show the list of processed files]' \
|
||||||
'(- *)--version[Display the version of this program]' \
|
|
||||||
'*: :_files'
|
'*: :_files'
|
||||||
|
|
||||||
# Local Variables:
|
# Local Variables:
|
||||||
|
|
|
||||||
|
|
@ -41,14 +41,12 @@ _arguments \
|
||||||
'(- *)--help-hidden[Display available more options]' \
|
'(- *)--help-hidden[Display available more options]' \
|
||||||
'(- *)--help-list[Display list of available options]' \
|
'(- *)--help-list[Display list of available options]' \
|
||||||
'(- *)--help-list-hidden[Display list of more available options]' \
|
'(- *)--help-list-hidden[Display list of more available options]' \
|
||||||
'--allow-no-checks[Allow empty enabled checks]' \
|
|
||||||
'--checks=[Comma-separated list of globs with optional "-" prefix]:checks' \
|
'--checks=[Comma-separated list of globs with optional "-" prefix]:checks' \
|
||||||
'--config=[Specifies a configuration in YAML/JSON format]:conf' \
|
'--config=[Specifies a configuration in YAML/JSON format]:conf' \
|
||||||
'--config-file=[Specify the path of .clang-tidy or custom config-file]: :_files' \
|
'--config-file=[Specify the path of .clang-tidy or custom config-file]: :_files' \
|
||||||
'--dump-config[Dumps configuration in the YAML format to stdout]' \
|
'--dump-config[Dumps configuration in the YAML format to stdout]' \
|
||||||
'--enable-check-profile[Enable per-check timing profiles, and print a report to stderr]' \
|
'--enable-check-profile[Enable per-check timing profiles, and print a report to stderr]' \
|
||||||
'--enable-module-headers-parsing[Enable preprocessor-level module header parsing for C++20 and above]' \
|
'--enable-module-headers-parsing[Enable preprocessor-level module header parsing for C++20 and above]' \
|
||||||
'--exclude-header-filter=[Regular expression of headers to exclude diagnostics from]:filter' \
|
|
||||||
'--explain-config[For each enabled check explains, where it is enabled]' \
|
'--explain-config[For each enabled check explains, where it is enabled]' \
|
||||||
'--export-fixes=[YAML file to store suggested fixes in]: :_files' \
|
'--export-fixes=[YAML file to store suggested fixes in]: :_files' \
|
||||||
'*--extra-arg[Additional argument to append to the compiler command line]:arg' \
|
'*--extra-arg[Additional argument to append to the compiler command line]:arg' \
|
||||||
|
|
@ -56,19 +54,16 @@ _arguments \
|
||||||
'--fix[Apply suggested fixes]' \
|
'--fix[Apply suggested fixes]' \
|
||||||
'--fix-errors[Apply suggested fixes even if compilation errors were found]' \
|
'--fix-errors[Apply suggested fixes even if compilation errors were found]' \
|
||||||
'--fix-notes[If a warning has no fix, but a single fix can be found through an associated diagnostic node, apply the fix]' \
|
'--fix-notes[If a warning has no fix, but a single fix can be found through an associated diagnostic node, apply the fix]' \
|
||||||
'--format-style=[Style for formatting code around applied fixes]: :(none file llvm google webkit mozilla)' \
|
'--format-style=[Style for formatting code around applied fixes]: :(llvm google webkit mozilla)' \
|
||||||
'--header-filter=[Regular expression matching the names of the headers to output diagnostics from]:regexp' \
|
'--header-filter=[Regular expression matching the names of the headers to output diagnostics from]:regexp' \
|
||||||
'--line-filter=[List of files with line ranges to filter the warnings]' \
|
'--line-filter=[List of files with line ranges to filter the warnings]' \
|
||||||
'(- *)--list-checks[List all enabled checks and exit]' \
|
'(- *)--list-checks[List all enabled checks and exit]' \
|
||||||
'--load=[Load the specified plugin]: :_files' \
|
'--load=[Load the specified plugin]: :_files' \
|
||||||
'-p[Build directory where compile_commands.json is]: :_files -/' \
|
'-p[Build directory where compile_commands.json is]: :_files -/' \
|
||||||
'--print-all-options[Print all option values after command line parsing]' \
|
|
||||||
'--print-options[Print non default options after command line parsing]' \
|
|
||||||
'--quiet[Run clang-tidy in quiet mode]' \
|
'--quiet[Run clang-tidy in quiet mode]' \
|
||||||
'--store-check-profile=[These per-TU profiles are instead stored as JSON]:prefix' \
|
'--store-check-profile=[These per-TU profiles are instead stored as JSON]:prefix' \
|
||||||
'--system-headers[Display the errors from system headers]' \
|
'--system-headers[Display the errors from system headers]' \
|
||||||
'--use-color[Use colors in diagnostics]' \
|
'--use-color[Use colors in diagnostics]' \
|
||||||
'(- *)--version[Display the version of this program]' \
|
|
||||||
'--verify-config[Check the config files to ensure each check and option is recognized]' \
|
'--verify-config[Check the config files to ensure each check and option is recognized]' \
|
||||||
'--vfsoverlay=[Overlay the virtual filesystem described by file over the real file system]: :_files' \
|
'--vfsoverlay=[Overlay the virtual filesystem described by file over the real file system]: :_files' \
|
||||||
'--warnings-as-errors=[Upgrades warning to errors]:check' \
|
'--warnings-as-errors=[Upgrades warning to errors]:check' \
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@
|
||||||
# Description
|
# Description
|
||||||
# -----------
|
# -----------
|
||||||
#
|
#
|
||||||
# Completion script for CMake 3.31.0 (https://cmake.org).
|
# Completion script for CMake 3.25.0 (https://cmake.org).
|
||||||
#
|
#
|
||||||
# -------------------------------------------------------------------------
|
# -------------------------------------------------------------------------
|
||||||
# Authors
|
# Authors
|
||||||
|
|
@ -77,7 +77,6 @@ local -a cmake_build_options=(
|
||||||
|
|
||||||
'--preset=[Specify a configure preset]:preset:_cmake_presets'
|
'--preset=[Specify a configure preset]:preset:_cmake_presets'
|
||||||
'--list-presets[List available presets]'
|
'--list-presets[List available presets]'
|
||||||
'--workflow[Run a workflow preset]'
|
|
||||||
|
|
||||||
'-E[CMake command mode]:command:_cmake_command_help'
|
'-E[CMake command mode]:command:_cmake_command_help'
|
||||||
|
|
||||||
|
|
@ -95,7 +94,6 @@ local -a cmake_build_options=(
|
||||||
|
|
||||||
'--graphviz=[Generate graphviz of dependencies, see CMakeGraphVizOptions.cmake for more]:graphviz output:_files'
|
'--graphviz=[Generate graphviz of dependencies, see CMakeGraphVizOptions.cmake for more]:graphviz output:_files'
|
||||||
'--system-information[Dump information about this system]::system information output:_files'
|
'--system-information[Dump information about this system]::system information output:_files'
|
||||||
'--print-config-dir[Print CMake config directory for user-wide FileAPI queries]'
|
|
||||||
|
|
||||||
'--log-level=[Set the verbosity of messages from CMake files]:log level:(ERROR WARNING NOTICE STATUS VERBOSE DEBUG TRACE)'
|
'--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]'
|
'--log-context[Prepend log messages with context, if given]'
|
||||||
|
|
@ -103,8 +101,6 @@ local -a cmake_build_options=(
|
||||||
'--debug-trycompile[Do not delete the try_compile build tree. Only useful on one try_compile at a time]'
|
'--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-output[Put cmake in a debug mode]'
|
||||||
'--debug-find[Put cmake find in a debug mode]'
|
'--debug-find[Put cmake find in a debug mode]'
|
||||||
'--debug-find-pkg=[Limit cmake debug-find to the comma-separated list of packages]:packages'
|
|
||||||
'--debug-find-var=[Limit cmake debug-find to the comma-separated list of result variables]:variables'
|
|
||||||
|
|
||||||
'(--trace-expand)--trace[Put cmake in trace mode]'
|
'(--trace-expand)--trace[Put cmake in trace mode]'
|
||||||
'(--trace)--trace-expand[Put cmake in trace mode with variable expansion]'
|
'(--trace)--trace-expand[Put cmake in trace mode with variable expansion]'
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@
|
||||||
# Notes
|
# Notes
|
||||||
# -----
|
# -----
|
||||||
#
|
#
|
||||||
# Created for Cppcheck version 2.17.1 (https://github.com/danmar/cppcheck)
|
# Created for Cppcheck version 2.12 (https://github.com/danmar/cppcheck)
|
||||||
#
|
#
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
@ -50,17 +50,13 @@ _cppcheck_files() {
|
||||||
|
|
||||||
_cppcheck() {
|
_cppcheck() {
|
||||||
local check_ids='(all warning style performance portability information unusedFunction missingInclude)'
|
local check_ids='(all warning style performance portability information unusedFunction missingInclude)'
|
||||||
local platforms='(unix32 unix64 win32A win32W win64 avr8 elbrus-e1cp pic8 pic8-enhanced pic16 mips32 native unspecified)'
|
|
||||||
local coding_standards='(normal autosar cert-c-2016 cert-cpp-2016 misra-c-2012 misra-c-2023 misra-cpp-2008 misra-cpp-2023)'
|
|
||||||
|
|
||||||
_arguments \
|
_arguments \
|
||||||
"--addon=[Execute addon]" \
|
"--addon=[Execute addon]" \
|
||||||
"--addon-python=[Specify the python interpreter]: :_files" \
|
"--addon-python=[Specify the python interpreter]: :_files" \
|
||||||
"--cppcheck-build-dir=[Analysis output directory]:directory:_files -/" \
|
"--cppcheck-build-dir=[Analysis output directory]:directory:_files -/" \
|
||||||
"--check-config[Check cppcheck configuration]" \
|
"--check-config[Check cppcheck configuration]" \
|
||||||
"--check-level=[Configure how much valueflow analysis you want]:level:(reduced normal exhaustive)" \
|
|
||||||
"--check-library[Show information when library files have incomplete info]" \
|
"--check-library[Show information when library files have incomplete info]" \
|
||||||
"--checkers-report=[Write a report of all the active checkers to the given file]:file:_files" \
|
|
||||||
"--clang=[Use clang parser instead of the builtin Cppcheck parser]: :_files" \
|
"--clang=[Use clang parser instead of the builtin Cppcheck parser]: :_files" \
|
||||||
"--config-exclude=[Path to be excluded from configuration checking]:directory:_files -/" \
|
"--config-exclude=[Path to be excluded from configuration checking]:directory:_files -/" \
|
||||||
"--config-exclude-files=[A file that contains a list of config-excludes]:file:_files" \
|
"--config-exclude-files=[A file that contains a list of config-excludes]:file:_files" \
|
||||||
|
|
@ -76,10 +72,8 @@ _cppcheck() {
|
||||||
"--exitcode-suppressions=[Used when certain messages should be displayed but should not cause a non-zero exitcode]:_files" \
|
"--exitcode-suppressions=[Used when certain messages should be displayed but should not cause a non-zero exitcode]:_files" \
|
||||||
"*--file-filter=[Analyze only those files matching the given filter str]:filter" \
|
"*--file-filter=[Analyze only those files matching the given filter str]:filter" \
|
||||||
"--file-list=[Specify the files to check in a text file]:_files" \
|
"--file-list=[Specify the files to check in a text file]:_files" \
|
||||||
"(-f --force)"{-f,--force}"[Force checking of all configurations in files]" \
|
'(-f --force)'{-f,--force}"[Force checking of all configurations in files]" \
|
||||||
"(--fsigned-char --funsigned-char)--fsigned-char[Treat char type as signed]" \
|
'(- 1 *)'{-h,--help}"[Print this help]" \
|
||||||
"(--fsigned-char --funsigned-char)--funsigned-char[Treat char type as unsigned]" \
|
|
||||||
"(- 1 *)"{-h,--help}"[Print this help]" \
|
|
||||||
"-I[A file that contains a list of config-excludes]:directory:_files -/" \
|
"-I[A file that contains a list of config-excludes]:directory:_files -/" \
|
||||||
"--include-file=[Specify directory paths to search for included header files in a text file]:file:_files" \
|
"--include-file=[Specify directory paths to search for included header files in a text file]:file:_files" \
|
||||||
"--include=[Force inclusion of a file before the checked file]:file:_files" \
|
"--include=[Force inclusion of a file before the checked file]:file:_files" \
|
||||||
|
|
@ -89,34 +83,26 @@ _cppcheck() {
|
||||||
"-j[Number of threads to do the checking simultaneously]::num" \
|
"-j[Number of threads to do the checking simultaneously]::num" \
|
||||||
"-l[No new threads should be started if the load average is exceeds this value]::load_avg" \
|
"-l[No new threads should be started if the load average is exceeds this value]::load_avg" \
|
||||||
{-x,--language=}"[Forces cppcheck to check all files as the given language]:language:(c c++)" \
|
{-x,--language=}"[Forces cppcheck to check all files as the given language]:language:(c c++)" \
|
||||||
"--library=[Load config file that contains information about types and functions]:config:_files" \
|
|
||||||
"--max-configs=[Maximum number of configurations to check in a file]" \
|
"--max-configs=[Maximum number of configurations to check in a file]" \
|
||||||
"--max-ctu-depth=[Maximum depth in whole program analysis]:num" \
|
"--max-ctu-depth=[Maximum depth in whole program analysis]:num" \
|
||||||
"--output-file=[File to save results]:file:_files" \
|
"--output-file=[File to save results]:file:_files" \
|
||||||
"--output-format=[Specify the output format]:format:(text sarif xml)" \
|
|
||||||
"--platform=[Specified platform specific types and sizes]:platform:$platforms" \
|
|
||||||
"--plist-output=[Generate Clang-plist output files in folder]:_files" \
|
"--plist-output=[Generate Clang-plist output files in folder]:_files" \
|
||||||
"--project=[Run Cppcheck on project]:file:_files" \
|
"--project=[Run Cppcheck on project]:file:_files" \
|
||||||
"--project-configuration=[Limit the configuration cppcheck should check]:configuration" \
|
"--project-configuration=[Limit the configuration cppcheck should check]:configuration" \
|
||||||
"--platform=[Set platform specific types and sizes]:platforms:(unix32 unix64 win32A win32W win64 avr8 elbrus-e1cp pic8 pic8-enhanced pic16 mips32 native unspecified)" \
|
"--platform=[Set platform specific types and sizes]:platforms:(unix32 unix64 win32A win32W win64 avr8 elbrus-e1cp pic8 pic8-enhanced pic16 mips32 native unspecified)" \
|
||||||
"(-q --quiet)"{-q,--quiet}"[Do not show progress reports]" \
|
'(-q --quiet)'{-q,--quiet}"[Do not show progress reports]" \
|
||||||
{-rp,--relative-paths}"=[Use relative paths in output (separated with ;)]:_files" \
|
{-rp,--relative-paths}"=[Use relative paths in output (separated with ;)]:_files" \
|
||||||
"--report-progress[Report progress messages while checking a file]" \
|
"--report-progress[Report progress messages while checking a file]" \
|
||||||
"--report-type=[Add guideline and classification fields for specified coding standard]:standard:$coding_standards" \
|
|
||||||
"--rule=[Match regular expression]:rule" \
|
|
||||||
"--rule-file=[Use given rule file]:file:_files" \
|
|
||||||
"--showtime=[show timing information]:type:(none file file-total summary top5_file top5_summary top5)" \
|
|
||||||
"--std=[Set standard]:std:(c89 c99 c11 c++03 c++11 c++14 c++17 c++20)" \
|
"--std=[Set standard]:std:(c89 c99 c11 c++03 c++11 c++14 c++17 c++20)" \
|
||||||
"--suppress=[Suppress warnings (format: \[error id\]:\[filename\]:\[line\])]" \
|
"--suppress=[Suppress warnings (format: \[error id\]:\[filename\]:\[line\])]" \
|
||||||
"--suppressions-list=[Suppress warnings listed in the file]:_files" \
|
"--suppressions-list=[Suppress warnings listed in the file]:_files" \
|
||||||
"--suppress-xml=[Suppress warnings listed in a xml file]:_files" \
|
"--suppress-xml=[Suppress warnings listed in a xml file]:_files" \
|
||||||
"--template=[Format the error messages]" \
|
"--template=[Format the error messages]" \
|
||||||
"--template-location=[Format the error message location]" \
|
"--template-location=[Format the error message location]" \
|
||||||
"*-U[Undefine preprocessor symbol]:symbol" \
|
|
||||||
"(-v --verbose)"{-v,--verbose}"[Output more detailed error information]" \
|
"(-v --verbose)"{-v,--verbose}"[Output more detailed error information]" \
|
||||||
"--version[Print out version number]" \
|
"--version[Print out version number]" \
|
||||||
"--xml[Write results in xml format to stderr]" \
|
"--xml[Write results in xml format to stderr]" \
|
||||||
"*: :_cppcheck_files"
|
'*: :_cppcheck_files'
|
||||||
}
|
}
|
||||||
|
|
||||||
_cppcheck "$@"
|
_cppcheck "$@"
|
||||||
|
|
|
||||||
|
|
@ -1,57 +0,0 @@
|
||||||
#compdef fail2ban-regex
|
|
||||||
# ------------------------------------------------------------------------------
|
|
||||||
# Description
|
|
||||||
# -----------
|
|
||||||
#
|
|
||||||
# Completion script for fail2ban-regex (https://www.fail2ban.org/).
|
|
||||||
# Environment:
|
|
||||||
# Linux 6.14.10-arch1-1 x86_64 GNU/Linux
|
|
||||||
# zsh 5.9 (x86_64-pc-linux-gnu)
|
|
||||||
# fail2ban 1.1.0-7
|
|
||||||
#
|
|
||||||
# ------------------------------------------------------------------------------
|
|
||||||
# Authors
|
|
||||||
# -------
|
|
||||||
#
|
|
||||||
# * Jesse Ayala <jesserayala95@gmail.com>
|
|
||||||
#
|
|
||||||
# ------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
integer NORMARG
|
|
||||||
|
|
||||||
_arguments -A "-*" -n \
|
|
||||||
'--version[show program''s version number]' \
|
|
||||||
'(-h --help)'{-h,--help}'[display the help message]' \
|
|
||||||
'(-c --config)'{-c,--config=}'[set alternate config directory]:directory:_files -/' \
|
|
||||||
'(-d --datepattern)'{-d,--datepattern=}'[set custom pattern used to match date/times]:DATEPATTERN' \
|
|
||||||
'(--timezone= --TZ=)'{--timezone=,--TZ=}'[set time-zone used by convert time format]:TIMEZONE' \
|
|
||||||
'(-e --encoding=)'{-e,--encoding=}'[use different encoding from system locale]:ENCODING' \
|
|
||||||
'(-r --raw)'{-r,--raw}'[raw hosts,don''t resolve dns]' \
|
|
||||||
'--usedns=[DNS specified replacement of tags <HOST> in regexp]::((yes\:matches all form of hosts no\:IP addresses only))' \
|
|
||||||
'(-L --maxlines=)'{-L,--maxlines}'[maxlines for multi-line regex]:MAXLINES' \
|
|
||||||
'(-m --journalmatch=)'{-m,--journalmatch=}'[journalctl style matches overriding filter file; "systemd-journal" only]:JOURNALMATCH' \
|
|
||||||
'(-l --log-level=)'{-l,--log-level}'[log level for the Fail2Ban logger to use]:LOG_LEVEL' \
|
|
||||||
'-V[get version in machine-readable short format]' \
|
|
||||||
'--verbosity=[set numerical level of verbosity]:(0 1 2 3 4)' \
|
|
||||||
'(--verbose-date --VD)'{--verbose-date,--VD}'[verbose date patterns/regex in output]' \
|
|
||||||
'(-D --debuggex)'{-D,--debuggex}'[produce debuggex.com urls for debugging there]' \
|
|
||||||
'--no-check-all[disable check for all regexes]' \
|
|
||||||
'(-o --out)'{-o,--out}'[set token to print failure information only (row, id, ip, msg, host, ip4, ip6, dns, matches, ...)]:out' \
|
|
||||||
'--print-no-missed[do not print any missed lines]' \
|
|
||||||
'--print-no-ignored[do not print any ignored lines]' \
|
|
||||||
'--print-all-matched[print all matched lines]' \
|
|
||||||
'--print-all-missed[print all missed lines, no matter how many]' \
|
|
||||||
'--print-all-ignored[print all ignored lines, no matter how many]' \
|
|
||||||
'(-t --log-traceback)'{-t,--log-traceback}'[enrich log-messages with compressed tracebacks]' \
|
|
||||||
'--full-traceback[enrich log-messages with full, uncompressed tracebacks]:' \
|
|
||||||
'1:file:_files -g \*.log' \
|
|
||||||
'2:file:_files -W /etc/fail2ban/filter.d -g \*\.\(conf\|local\)' \
|
|
||||||
'3:file:_files -W /etc/fail2ban/filter.d -g \*\.\(conf\|local\)'
|
|
||||||
|
|
||||||
# Local Variables:
|
|
||||||
# mode: Shell-Script
|
|
||||||
# sh-indentation: 2
|
|
||||||
# indent-tabs-mode: nil
|
|
||||||
# sh-basic-offset: 2
|
|
||||||
# End:
|
|
||||||
# vim: set et sw=2 ts=2 ft=zsh:
|
|
||||||
4
src/_kak
4
src/_kak
|
|
@ -28,7 +28,7 @@
|
||||||
# Description
|
# Description
|
||||||
# -----------
|
# -----------
|
||||||
#
|
#
|
||||||
# Completion script for kak 2024.05.18 (https://github.com/mawww/kakoune)
|
# Completion script for kak 2022.10.31 (https://github.com/mawww/kakoune)
|
||||||
#
|
#
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
# Authors
|
# Authors
|
||||||
|
|
@ -57,7 +57,7 @@ _kak() {
|
||||||
"-f[enter in 'filter mode':select the whole file, then execute keys]:keys" \
|
"-f[enter in 'filter mode':select the whole file, then execute keys]:keys" \
|
||||||
'-i[backup the files on which a filter is applied using the given suffix]:suffix' \
|
'-i[backup the files on which a filter is applied using the given suffix]:suffix' \
|
||||||
'-q[in filter mode, do not print any errors]' \
|
'-q[in filter mode, do not print any errors]' \
|
||||||
'-ui[set the type of user interface to use (terminal, dummy, or json)]:ui_type:(terminal dummy json)' \
|
'-ui[set the type of user interface to use (ncurses, dummy, or json)]:ui_type:(ncurses dummy json)' \
|
||||||
'-l[list existing sessions]:session_id:_kak_sessions' \
|
'-l[list existing sessions]:session_id:_kak_sessions' \
|
||||||
'-clear[clear dead sessions]' \
|
'-clear[clear dead sessions]' \
|
||||||
'-debug[initial debug option value]:arg' \
|
'-debug[initial debug option value]:arg' \
|
||||||
|
|
|
||||||
11
src/_node
11
src/_node
|
|
@ -28,7 +28,7 @@
|
||||||
# Description
|
# Description
|
||||||
# -----------
|
# -----------
|
||||||
#
|
#
|
||||||
# Completion script for Node.js v24.4.0 (https://nodejs.org)
|
# Completion script for Node.js v23.8.0 (https://nodejs.org)
|
||||||
#
|
#
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
# Authors
|
# Authors
|
||||||
|
|
@ -49,7 +49,7 @@ _node_files() {
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
_files -g "*.(js|mjs|ts|mts)"
|
_files -g "*.(js|mjs)"
|
||||||
}
|
}
|
||||||
|
|
||||||
_node_args() {
|
_node_args() {
|
||||||
|
|
@ -93,7 +93,6 @@ _arguments -C \
|
||||||
'--cpu-prof-name=[file name of the V8 profile generated with --cpu-prof]: :_files' \
|
'--cpu-prof-name=[file name of the V8 profile generated with --cpu-prof]: :_files' \
|
||||||
'--diagnostic-dir=[set dir for all output files(default: current working directory)]:dir:_files -/' \
|
'--diagnostic-dir=[set dir for all output files(default: current working directory)]:dir:_files -/' \
|
||||||
'--disable-proto=[disable Object.prototype.__proto__]:mode:(delete throw)' \
|
'--disable-proto=[disable Object.prototype.__proto__]:mode:(delete throw)' \
|
||||||
'--disable-sigusr1[disable inspector thread to be listening for SIGUSR1 signal]' \
|
|
||||||
'*--disable-warning=[silence specific process warnings]:warn type' \
|
'*--disable-warning=[silence specific process warnings]:warn type' \
|
||||||
'--disable-wasm-trap-handler[disable trap-handler-based WebAssembly bound checks]' \
|
'--disable-wasm-trap-handler[disable trap-handler-based WebAssembly bound checks]' \
|
||||||
'--disallow-code-generation-from-strings[disallow eval and friends]' \
|
'--disallow-code-generation-from-strings[disallow eval and friends]' \
|
||||||
|
|
@ -106,8 +105,7 @@ _arguments -C \
|
||||||
'*--env-file-if-exists=[set environment variables from supplied file if exists]:envfile:_files' \
|
'*--env-file-if-exists=[set environment variables from supplied file if exists]:envfile:_files' \
|
||||||
'(- 1 *)'{-e,--eval}'[evaluate script]:inline JavaScript' \
|
'(- 1 *)'{-e,--eval}'[evaluate script]:inline JavaScript' \
|
||||||
'--experimental-addon-modules[enable experimental import support for addons]' \
|
'--experimental-addon-modules[enable experimental import support for addons]' \
|
||||||
'--experimental-config-file=[set config file from supplied file]:file:_files' \
|
'--experimental-async-context-frame[improve AsyncLocalStorage performance with AsyncContextFrame]' \
|
||||||
'--experimental-default-config-file[set config file from default config file]' \
|
|
||||||
'--experimental-eventsource[enable experimental EventSource API]' \
|
'--experimental-eventsource[enable experimental EventSource API]' \
|
||||||
'--experimental-import-meta-resolve[experimental ES Module import.meta.resolve() support]' \
|
'--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' \
|
'(--loader --experimental-loader)'{--loader,--experimental-loader}'=[Specify the module of a custom ECMAScript Module loader]: :_files' \
|
||||||
|
|
@ -152,8 +150,6 @@ _arguments -C \
|
||||||
'--no-experimental-global-navigator[expose experimental Navigator API on the global scope]' \
|
'--no-experimental-global-navigator[expose experimental Navigator API on the global scope]' \
|
||||||
'--no-experimental-repl-await[disable experimental await keyword support in REPL]' \
|
'--no-experimental-repl-await[disable experimental await keyword support in REPL]' \
|
||||||
'--no-experimental-require-module[allow loading synchronous ES Modules in require()]' \
|
'--no-experimental-require-module[allow loading synchronous ES Modules in require()]' \
|
||||||
'--no-experimental-sqlite[disable experimental node sqlite module]' \
|
|
||||||
'--no-experimental-strip-types[disable experimental type-stripping for TypeScript files]' \
|
|
||||||
'--no-experimental-websocket[experimental WebSocket API (currently set)]' \
|
'--no-experimental-websocket[experimental WebSocket API (currently set)]' \
|
||||||
'--no-extra-info-on-fatal-exception[hide extra information on fatal exception that causes exit]' \
|
'--no-extra-info-on-fatal-exception[hide extra information on fatal exception that causes exit]' \
|
||||||
'--no-force-async-hooks-checks[disable checks for async_hooks]' \
|
'--no-force-async-hooks-checks[disable checks for async_hooks]' \
|
||||||
|
|
@ -232,7 +228,6 @@ _arguments -C \
|
||||||
'(- 1 *)--v8-options[print v8 command line options]' \
|
'(- 1 *)--v8-options[print v8 command line options]' \
|
||||||
"--v8-pool-size=[set v8's thread pool size]:number" \
|
"--v8-pool-size=[set v8's thread pool size]:number" \
|
||||||
"--watch[run in watch mode]" \
|
"--watch[run in watch mode]" \
|
||||||
'--watch-kill-signal=[kill signal to send to the process on watch mode restarts]:signal:_signals -s' \
|
|
||||||
"--watch-path=[path to watch]: :_node_files" \
|
"--watch-path=[path to watch]: :_node_files" \
|
||||||
'--watch-preserve-output[preserve outputs on watch mode restart]' \
|
'--watch-preserve-output[preserve outputs on watch mode restart]' \
|
||||||
'--zero-fill-buffers[automatically zero-fill all newly allocated Buffer and SlowBuffer instances]' \
|
'--zero-fill-buffers[automatically zero-fill all newly allocated Buffer and SlowBuffer instances]' \
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
# Description
|
# Description
|
||||||
# -----------
|
# -----------
|
||||||
#
|
#
|
||||||
# Completion script for pre-commit 4.2.0 (https://github.com/pre-commit/pre-commit/).
|
# Completion script for pre-commit (https://github.com/pre-commit/pre-commit/).
|
||||||
# Modified from rejected https://github.com/pre-commit/pre-commit/pull/2506
|
# Modified from rejected https://github.com/pre-commit/pre-commit/pull/2506
|
||||||
#
|
#
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
_pre_commit_commands() {
|
_pre_commit_commands() {
|
||||||
local commands=(
|
local _commands=(
|
||||||
"autoupdate:Auto-update pre-commit config to the latest repos' versions"
|
"autoupdate:Auto-update pre-commit config to the latest repos' versions"
|
||||||
"clean:Clean out pre-commit files"
|
"clean:Clean out pre-commit files"
|
||||||
"gc:Clean unused cached repos"
|
"gc:Clean unused cached repos"
|
||||||
|
|
@ -30,9 +30,8 @@ _pre_commit_commands() {
|
||||||
"uninstall:Uninstall the pre-commit script"
|
"uninstall:Uninstall the pre-commit script"
|
||||||
"validate-config:Validate .pre-commit-config.yaml files"
|
"validate-config:Validate .pre-commit-config.yaml files"
|
||||||
"validate-manifest:Validate .pre-commit-hooks.yaml files"
|
"validate-manifest:Validate .pre-commit-hooks.yaml files"
|
||||||
"help:Show help for a specific command"
|
|
||||||
)
|
)
|
||||||
_describe 'pre-commit commands' commands
|
_describe 'pre-commit commands' _commands
|
||||||
}
|
}
|
||||||
|
|
||||||
_pre_commit_options=(
|
_pre_commit_options=(
|
||||||
|
|
@ -47,7 +46,6 @@ _pre_commit_autoupdate_options=(
|
||||||
"--bleeding-edge[Update to the bleeding edge of 'HEAD' instead of the latest tagged version]"
|
"--bleeding-edge[Update to the bleeding edge of 'HEAD' instead of the latest tagged version]"
|
||||||
"--freeze[Store 'frozen' hashes in 'rev' instead of tag names]"
|
"--freeze[Store 'frozen' hashes in 'rev' instead of tag names]"
|
||||||
"*--repo[Only update this repository -- may be specified multiple times]:repos:"
|
"*--repo[Only update this repository -- may be specified multiple times]:repos:"
|
||||||
{-j,--jobs}"[Number of threads to use]:jobs"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
_pre_commit_clean_options=(
|
_pre_commit_clean_options=(
|
||||||
|
|
@ -70,7 +68,7 @@ _pre_commit_init_templatedir_options=(
|
||||||
"--color[Whether to use color in output. Defaults to 'auto']:color:(auto always never)"
|
"--color[Whether to use color in output. Defaults to 'auto']:color:(auto always never)"
|
||||||
{-c,--config}"[Path to alternate config file]:config:_files -g '*.yaml'"
|
{-c,--config}"[Path to alternate config file]:config:_files -g '*.yaml'"
|
||||||
"--no-allow-missing-config[Assume cloned repos should have a 'pre-commit' config]"
|
"--no-allow-missing-config[Assume cloned repos should have a 'pre-commit' config]"
|
||||||
"*"{-t,--hook-type}"[which hook type to install]:hook_types:(commit-msg post-checkout post-commit post-merge post-rewrite pre-commit pre-merge-commit pre-push pre-rebase prepare-commit-msg)"
|
"*"{-t,--hook-type}"[which hook type to install]:hook_types:(pre-commit pre-merge-commit pre-push prepare-commit-msg commit-msg post-commit post-checkout post-merge post-rewrite)"
|
||||||
":The directory in which to write the hook script.:_files -/"
|
":The directory in which to write the hook script.:_files -/"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
@ -80,7 +78,7 @@ _pre_commit_install_options=(
|
||||||
{-c,--config}"[Path to alternate config file]:config:_files -g '*.yaml'"
|
{-c,--config}"[Path to alternate config file]:config:_files -g '*.yaml'"
|
||||||
{-f,--overwrite}"[Overwrite existing hooks / remove migration mode]"
|
{-f,--overwrite}"[Overwrite existing hooks / remove migration mode]"
|
||||||
"--install-hooks[Whether to install hook environments for all environments in the config file]"
|
"--install-hooks[Whether to install hook environments for all environments in the config file]"
|
||||||
{-t,--hook-type}"[which hook type to install]:hook_type:(commit-msg post-checkout post-commit post-merge post-rewrite pre-commit pre-merge-commit pre-push pre-rebase prepare-commit-msg)"
|
"*"{-t,--hook-type}"[which hook type to install]:hook_types:(pre-commit pre-merge-commit pre-push prepare-commit-msg commit-msg post-commit post-checkout post-merge post-rewrite)"
|
||||||
"--allow-missing-config[Hook scripts will permit a missing configuration file]"
|
"--allow-missing-config[Hook scripts will permit a missing configuration file]"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
@ -104,13 +102,11 @@ _pre_commit_run_options=(
|
||||||
{--all-files,-a}"[Run on all the files in the repo]"
|
{--all-files,-a}"[Run on all the files in the repo]"
|
||||||
"--files[Specific filenames to run hooks on]:files:_files"
|
"--files[Specific filenames to run hooks on]:files:_files"
|
||||||
"--show-diff-on-failure[When hooks fail, run 'git diff' directly afterward]"
|
"--show-diff-on-failure[When hooks fail, run 'git diff' directly afterward]"
|
||||||
"--hook-stage[The stage during which the hook is fired]:hook_stage:(commit-msg post-checkout post-commit post-merge post-rewrite pre-commit pre-merge-commit pre-push pre-rebase prepare-commit-msg manual)"
|
"--hook-stage[The stage during which the hook is fired]:hook_stage:(commit merge-commit prepare-commit-msg commit-msg post-commit manual post-checkout push post-merge post-rewrite)"
|
||||||
"--remote-branch[Remote branch ref used by 'git push']:remote_branch:"
|
"--remote-branch[Remote branch ref used by 'git push']:remote_branch:"
|
||||||
"--local-branch[Local branch ref used by 'git push']:local_branch:"
|
"--local-branch[Local branch ref used by 'git push']:local_branch:"
|
||||||
{--from-ref,--source,-s}"[the original ref in a 'from_ref...to_ref' diff expression]:from_ref:"
|
{--from-ref,--source,-s}"[the original ref in a 'from_ref...to_ref' diff expression]:from_ref:"
|
||||||
{--to-ref,--origin,-o}"[the destination ref in a 'from_ref...to_ref' diff expression]:to_ref:"
|
{--to-ref,--origin,-o}"[the destination ref in a 'from_ref...to_ref' diff expression]:to_ref:"
|
||||||
"--pre-rebase-upstream[the upstream from which the series was forked]:pre_rebase_upstream"
|
|
||||||
"--pre-rebase-branch[the branch being rebased and is not set when rebasing the current branch]:pre_rebase_branch"
|
|
||||||
"--commit-msg-filename[Filename to check when running during 'commit-msg']:commit_msg_filename:"
|
"--commit-msg-filename[Filename to check when running during 'commit-msg']:commit_msg_filename:"
|
||||||
"--prepare-commit-message-source[Source of the commit message]:prepare_commit_message_source:"
|
"--prepare-commit-message-source[Source of the commit message]:prepare_commit_message_source:"
|
||||||
"--commit-object-name[Commit object name]:commit_object_name:"
|
"--commit-object-name[Commit object name]:commit_object_name:"
|
||||||
|
|
@ -136,13 +132,11 @@ _pre_commit_try_repo_options=(
|
||||||
{--all-files,-a}"[Run on all the files in the repo]"
|
{--all-files,-a}"[Run on all the files in the repo]"
|
||||||
"--files[Specific filenames to run hooks on]:files:_files"
|
"--files[Specific filenames to run hooks on]:files:_files"
|
||||||
"--show-diff-on-failure[When hooks fail, run 'git diff' directly afterward]"
|
"--show-diff-on-failure[When hooks fail, run 'git diff' directly afterward]"
|
||||||
"--hook-stage[The stage during which the hook is fired]:hook_stage:(commit-msg post-checkout post-commit post-merge post-rewrite pre-commit pre-merge-commit pre-push pre-rebase prepare-commit-msg manual)"
|
"--hook-stage[The stage during which the hook is fired]:hook_stage:(commit merge-commit prepare-commit-msg commit-msg post-commit manual post-checkout push post-merge post-rewrite)"
|
||||||
"--remote-branch[Remote branch ref used by 'git push']:remote_branch:"
|
"--remote-branch[Remote branch ref used by 'git push']:remote_branch:"
|
||||||
"--local-branch[Local branch ref used by 'git push']:local_branch:"
|
"--local-branch[Local branch ref used by 'git push']:local_branch:"
|
||||||
{--from-ref,--source,-s}"[the original ref in a 'from_ref...to_ref' diff expression]:from_ref:"
|
{--from-ref,--source,-s}"[the original ref in a 'from_ref...to_ref' diff expression]:from_ref:"
|
||||||
{--to-ref,--origin,-o}"[the destination ref in a 'from_ref...to_ref' diff expression]:to_ref:"
|
{--to-ref,--origin,-o}"[the destination ref in a 'from_ref...to_ref' diff expression]:to_ref:"
|
||||||
"--pre-rebase-upstream[the upstream from which the series was forked]:pre_rebase_upstream"
|
|
||||||
"--pre-rebase-branch[the branch being rebased and is not set when rebasing the current branch]:pre_rebase_branch"
|
|
||||||
"--commit-msg-filename[Filename to check when running during 'commit-msg']:commit_msg_filename:"
|
"--commit-msg-filename[Filename to check when running during 'commit-msg']:commit_msg_filename:"
|
||||||
"--prepare-commit-message-source[Source of the commit message]:prepare_commit_message_source:"
|
"--prepare-commit-message-source[Source of the commit message]:prepare_commit_message_source:"
|
||||||
"--commit-object-name[Commit object name]:commit_object_name:"
|
"--commit-object-name[Commit object name]:commit_object_name:"
|
||||||
|
|
@ -159,7 +153,7 @@ _pre_commit_uninstall_options=(
|
||||||
"(- : *)"{-h,--help}"[show this help message and exit]"
|
"(- : *)"{-h,--help}"[show this help message and exit]"
|
||||||
"--color[Whether to use color in output. Defaults to 'auto']:color:(auto always never)"
|
"--color[Whether to use color in output. Defaults to 'auto']:color:(auto always never)"
|
||||||
{-c,--config}"[Path to alternate config file]:config:_files -g '*.yaml'"
|
{-c,--config}"[Path to alternate config file]:config:_files -g '*.yaml'"
|
||||||
"*"{-t,--hook-type}"[which hook type to uninstall]:hook_types:(commit-msg post-checkout post-commit post-merge post-rewrite pre-commit pre-merge-commit pre-push pre-rebase prepare-commit-msg)"
|
"*"{-t,--hook-type}"[which hook type to uninstall]:hook_types:(pre-commit pre-merge-commit pre-push prepare-commit-msg commit-msg post-commit post-checkout post-merge post-rewrite)"
|
||||||
)
|
)
|
||||||
|
|
||||||
_pre_commit_validate_config_options=(
|
_pre_commit_validate_config_options=(
|
||||||
|
|
|
||||||
|
|
@ -42,10 +42,6 @@ _setcap() {
|
||||||
local curcontext=$curcontext state line expl ret=1
|
local curcontext=$curcontext state line expl ret=1
|
||||||
|
|
||||||
_arguments -C -s \
|
_arguments -C -s \
|
||||||
'-r[remove capability from file]' \
|
|
||||||
'--license[display the license info]' \
|
|
||||||
'-f[force setting even when the capability is invalid]' \
|
|
||||||
'-h[show help message and exit]' \
|
|
||||||
'-v[verify that the specified capabilities are currently associated with the file]' \
|
'-v[verify that the specified capabilities are currently associated with the file]' \
|
||||||
'-n[set the file capability for use only in a user namespace with this root user ID owner]:rootuid' \
|
'-n[set the file capability for use only in a user namespace with this root user ID owner]:rootuid' \
|
||||||
'-q[make the program less verbose in its output]' \
|
'-q[make the program less verbose in its output]' \
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@
|
||||||
# Description
|
# Description
|
||||||
# -----------
|
# -----------
|
||||||
#
|
#
|
||||||
# Completion script for shallow-backup v6.4: https://github.com/alichtman/shallow-backup
|
# Completion script for shallow-backup: https://github.com/alichtman/shallow-backup
|
||||||
#
|
#
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
# Authors
|
# Authors
|
||||||
|
|
@ -38,6 +38,7 @@
|
||||||
#
|
#
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
_shallow-backup() {
|
_shallow-backup() {
|
||||||
_arguments \
|
_arguments \
|
||||||
'(- 1 *)'{-h,--help}'[Show help and exit]' \
|
'(- 1 *)'{-h,--help}'[Show help and exit]' \
|
||||||
|
|
@ -60,7 +61,6 @@ _shallow-backup() {
|
||||||
'--reinstall-fonts[Reinstall fonts]' \
|
'--reinstall-fonts[Reinstall fonts]' \
|
||||||
'--reinstall-packages[Reinstall packages]' \
|
'--reinstall-packages[Reinstall packages]' \
|
||||||
'--remote[Set remote URL for the git repo]':url \
|
'--remote[Set remote URL for the git repo]':url \
|
||||||
'--edit[Open config file in $EDITOR]' \
|
|
||||||
'--show[Display config file]'
|
'--show[Display config file]'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@
|
||||||
# Description
|
# Description
|
||||||
# -----------
|
# -----------
|
||||||
#
|
#
|
||||||
# Completion script for shellcheck v0.10.0 (https://github.com/koalaman/shellcheck)
|
# Completion script for shellcheck (https://github.com/koalaman/shellcheck)
|
||||||
#
|
#
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
# Authors
|
# Authors
|
||||||
|
|
@ -43,14 +43,12 @@ _arguments \
|
||||||
{-C,--color=}'[specify color]:color:(auto always never)' \
|
{-C,--color=}'[specify color]:color:(auto always never)' \
|
||||||
{-i,--include=}'[consider only given types of warnings]:error code' \
|
{-i,--include=}'[consider only given types of warnings]:error code' \
|
||||||
{-e,--exclude=}'[exclude given types of warnings]:error code' \
|
{-e,--exclude=}'[exclude given types of warnings]:error code' \
|
||||||
'--extended-analysis=[perform dataflow analysis]:bool:(true false)' \
|
|
||||||
{-f,--format=}'[specify output format]:format:(checkstyle diff gcc json json1 quiet tty)' \
|
{-f,--format=}'[specify output format]:format:(checkstyle diff gcc json json1 quiet tty)' \
|
||||||
'--list-optional[list checks disabled by default]' \
|
'--list-optional[list checks disabled by default]' \
|
||||||
"--norc[don't look for .shellcheckrc files]" \
|
"--norc[don't look for .shellcheckrc files]" \
|
||||||
'--rcfile=[specify configuration file over searching for one]:rcfile:_files' \
|
|
||||||
{-o,--enable=}"[give list of optional checks to enable (or 'all')]:error code" \
|
{-o,--enable=}"[give list of optional checks to enable (or 'all')]:error code" \
|
||||||
{-P,--source-path=}'[specify path when looking for sourced files]:_files -/' \
|
{-P,--source-path=}'[specify path when looking for sourced files]:_files -/' \
|
||||||
{-s,--shell=}'[specify dialect]:dialect:(sh bash dash ksh busybox)' \
|
{-s,--shell=}'[specify dialect]:dialect:(sh bash dash ksh)' \
|
||||||
{-S,--severity=}'[specify minimum severity of errors to consider]:severity:(error warning info style)' \
|
{-S,--severity=}'[specify minimum severity of errors to consider]:severity:(error warning info style)' \
|
||||||
{-V,--version}'[print version information]' \
|
{-V,--version}'[print version information]' \
|
||||||
{-W,--wiki-link-count=}'[specify number of wiki links to show, when applicable]:number' \
|
{-W,--wiki-link-count=}'[specify number of wiki links to show, when applicable]:number' \
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,7 @@
|
||||||
# -------
|
# -------
|
||||||
#
|
#
|
||||||
# * Bruno Michel (https://github.com/nono)
|
# * Bruno Michel (https://github.com/nono)
|
||||||
# * Shohei Yoshida (https://github.com/nono)
|
# * Shoehi Yoshida (https://github.com/nono)
|
||||||
#
|
#
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
@ -124,7 +124,7 @@ _showoff() {
|
||||||
'(-f --file --pres_file)'{-f,--file,--pres_file}='[JSON file used to describe presentation(default: showoff.json)]: :_files -g "*.json"' \
|
'(-f --file --pres_file)'{-f,--file,--pres_file}='[JSON file used to describe presentation(default: showoff.json)]: :_files -g "*.json"' \
|
||||||
'--git_branch=[Branch of git repository to use(default: none)]:branch' \
|
'--git_branch=[Branch of git repository to use(default: none)]:branch' \
|
||||||
'--git_path=[Path of the presentation within the git repository(default: none)]:path' \
|
'--git_path=[Path of the presentation within the git repository(default: none)]:path' \
|
||||||
'(-h --host)'{-h,--host}='[Host or IP to run on(default: 0.0.0.0)]' \
|
'(-h --host)'{-h,--host}='[Host or ip to run on(default: 0.0.0.0)]' \
|
||||||
'--nocache[Disable content caching]'\
|
'--nocache[Disable content caching]'\
|
||||||
'--nosleep[Prevent the computer from sleeping during your presentation]' \
|
'--nosleep[Prevent the computer from sleeping during your presentation]' \
|
||||||
'(-p --port)'{-p,--port}='[Port on which to run(default: 9090)]' \
|
'(-p --port)'{-p,--port}='[Port on which to run(default: 9090)]' \
|
||||||
|
|
|
||||||
56
src/_ufw
56
src/_ufw
|
|
@ -28,7 +28,7 @@
|
||||||
# Description
|
# Description
|
||||||
# -----------
|
# -----------
|
||||||
#
|
#
|
||||||
# Completion script for The Uncomplicated Firewall (ufw) v0.36.2. (https://launchpad.net/ufw).
|
# Completion script for The Uncomplicated Firewall (ufw). (https://launchpad.net/ufw).
|
||||||
#
|
#
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
# Authors
|
# Authors
|
||||||
|
|
@ -38,7 +38,9 @@
|
||||||
#
|
#
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
_ufw_logging() {
|
_ufw_logging() {
|
||||||
|
|
||||||
local params additional second
|
local params additional second
|
||||||
second=$words[2]
|
second=$words[2]
|
||||||
|
|
||||||
|
|
@ -46,13 +48,23 @@ _ufw_logging() {
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
params=("on" "off")
|
params=(
|
||||||
additional=("low" "medium" "high" "full")
|
"on"
|
||||||
|
"off"
|
||||||
|
)
|
||||||
|
|
||||||
|
additional=(
|
||||||
|
"low"
|
||||||
|
"medium"
|
||||||
|
"high"
|
||||||
|
"full"
|
||||||
|
)
|
||||||
|
|
||||||
_describe -t params 'on/off' params
|
_describe -t params 'on/off' params
|
||||||
_describe -t additional 'level' additional
|
_describe -t additional 'level' additional
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
_ufw_delete() {
|
_ufw_delete() {
|
||||||
local rules complrules second
|
local rules complrules second
|
||||||
|
|
||||||
|
|
@ -72,31 +84,6 @@ _ufw_delete() {
|
||||||
_describe -t complrules 'Rules' complrules
|
_describe -t complrules 'Rules' complrules
|
||||||
}
|
}
|
||||||
|
|
||||||
_ufw_app() {
|
|
||||||
local ret=1
|
|
||||||
|
|
||||||
local -a subcmds=(
|
|
||||||
"list:list application profiles"
|
|
||||||
"info:show information on profile"
|
|
||||||
"update:update profile"
|
|
||||||
"default:set default application profile"
|
|
||||||
)
|
|
||||||
|
|
||||||
_arguments \
|
|
||||||
"1: :{_describe 'command' subcmds}" \
|
|
||||||
&& ret=0
|
|
||||||
|
|
||||||
return ret
|
|
||||||
}
|
|
||||||
|
|
||||||
(( $+functions[_flutter_pub_token_subcommand] )) ||
|
|
||||||
_flutter_pub_token_subcommand() {
|
|
||||||
local -a subcommands=(
|
|
||||||
|
|
||||||
)
|
|
||||||
_describe -t subcommands 'subcommand' subcommands "$@"
|
|
||||||
}
|
|
||||||
|
|
||||||
_ufw() {
|
_ufw() {
|
||||||
local curcontext="$curcontext" ret=1
|
local curcontext="$curcontext" ret=1
|
||||||
local -a state line commands
|
local -a state line commands
|
||||||
|
|
@ -119,7 +106,6 @@ _ufw() {
|
||||||
"show:show firewall report"
|
"show:show firewall report"
|
||||||
"version:display version information"
|
"version:display version information"
|
||||||
"prepend:add rule before all of the same type"
|
"prepend:add rule before all of the same type"
|
||||||
"app:application profile command"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
_arguments -C -s -S -n \
|
_arguments -C -s -S -n \
|
||||||
|
|
@ -143,9 +129,6 @@ _ufw() {
|
||||||
(delete)
|
(delete)
|
||||||
_ufw_delete && ret=0
|
_ufw_delete && ret=0
|
||||||
;;
|
;;
|
||||||
(app)
|
|
||||||
_ufw_app && ret=0
|
|
||||||
;;
|
|
||||||
(*)
|
(*)
|
||||||
_default && ret=0
|
_default && ret=0
|
||||||
;;
|
;;
|
||||||
|
|
@ -158,12 +141,5 @@ _ufw() {
|
||||||
return ret
|
return ret
|
||||||
}
|
}
|
||||||
|
|
||||||
_ufw "$@"
|
_ufw
|
||||||
|
|
||||||
# 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
|
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@
|
||||||
# Description
|
# Description
|
||||||
# -----------
|
# -----------
|
||||||
#
|
#
|
||||||
# Completion script for xsel v1.2.1 (https://www.vergenet.net/~conrad/software/xsel/).
|
# Completion script for xsel (https://www.vergenet.net/~conrad/software/xsel/).
|
||||||
#
|
#
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
# Authors
|
# Authors
|
||||||
|
|
@ -45,7 +45,6 @@ local selection='(-p --primary -s --secondary -b --clipboard)'
|
||||||
_arguments -s \
|
_arguments -s \
|
||||||
$input{-a,--append}'[append standard input to the selection]' \
|
$input{-a,--append}'[append standard input to the selection]' \
|
||||||
$input{-f,--follow}'[append to selection as standard input grows]' \
|
$input{-f,--follow}'[append to selection as standard input grows]' \
|
||||||
$input{-z,--zeroflush}'[overwrites selection when zero(\\0) is received]' \
|
|
||||||
$input{-i,--input}'[read standard input into the selection]' \
|
$input{-i,--input}'[read standard input into the selection]' \
|
||||||
{-o,--output}'[write the selection to standard output]' \
|
{-o,--output}'[write the selection to standard output]' \
|
||||||
$operation{-c,--clear}'[clear the selection]' \
|
$operation{-c,--clear}'[clear the selection]' \
|
||||||
|
|
@ -56,7 +55,6 @@ _arguments -s \
|
||||||
$operation{-k,--keep}'[do not modify the selections, but make the PRIMARY and SECONDARY selections persist even after the programs they were selected in exit]' \
|
$operation{-k,--keep}'[do not modify the selections, but make the PRIMARY and SECONDARY selections persist even after the programs they were selected in exit]' \
|
||||||
$operation{-x,--exchange}'[exchange the PRIMARY and SECONDARY selections]' \
|
$operation{-x,--exchange}'[exchange the PRIMARY and SECONDARY selections]' \
|
||||||
'--display[specify the server to use; see X(1)]:X display:_x_display' \
|
'--display[specify the server to use; see X(1)]:X display:_x_display' \
|
||||||
'--windowName[specify the X WM_ NAME window property]:window_name' \
|
|
||||||
{-t,--selectionTimeout}'[specify the timeout in milliseconds within which the selection must be retrieved]:number' \
|
{-t,--selectionTimeout}'[specify the timeout in milliseconds within which the selection must be retrieved]:number' \
|
||||||
{-l,--logfile}'[specify the file to log errors to when detached (default $HOME/.xsel.log)]:log file:_files' \
|
{-l,--logfile}'[specify the file to log errors to when detached (default $HOME/.xsel.log)]:log file:_files' \
|
||||||
{-n,--nodetach}'[do not detach from the controlling terminal]' \
|
{-n,--nodetach}'[do not detach from the controlling terminal]' \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue