Compare commits

...

4 Commits

Author SHA1 Message Date
wzy a3e71a5d88
Merge ea4685a96f into 85e041be36 2025-02-03 14:09:00 +01:00
Shohei YOSHIDA 85e041be36
Merge pull request #1119 from kyanagi/rubocop_1_71
Update rubocop completion for version 1.71.0
2025-01-28 13:49:31 +09:00
Kouhei Yanagita bb09f70830
Update rubocop completion for version 1.71.0 2025-01-28 10:27:53 +09:00
Wu, Zhenyu ea4685a96f
Add cgdb completion 2024-05-10 10:16:27 +08:00
2 changed files with 31 additions and 1 deletions

28
src/_cgdb Normal file
View File

@ -0,0 +1,28 @@
#compdef cgdb
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for cgdb (https://github.com/cgdb/cgdb).
# Modified from rejected https://github.com/cgdb/cgdb/pull/337/
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * Wu, Zhenyu <wuzhenyu@ustc.edu>
#
# ------------------------------------------------------------------------------
# cgdb -- <TAB>
if ((${${words[1, CURRENT]}[(I)--]})) && [[ ${words[CURRENT]} != -- ]]; then
_gdb
# cgdb <TAB> or cgdb <TAB> -- or cgdb --<TAB>
else
_arguments -s \
"(- : *)"{-v,--version}"[Print version information and then exit.]" \
"(- : *)"{-h,--help}"[Print help (this message) and then exit.]" \
-d"[Set debugger to use.]" \
-w"[Wait for debugger to attach before starting.]" \
--
fi

View File

@ -28,7 +28,7 @@
# Description
# -----------
#
# Completion script for rubocop 1.65.0 (https://github.com/rubocop/rubocop)
# Completion script for rubocop 1.71.0 (https://github.com/rubocop/rubocop)
#
# ------------------------------------------------------------------------------
# Authors
@ -66,7 +66,9 @@ _arguments \
'--only-recognized-file-types[Inspect files given on the command line only if they are listed in configuration]' \
'--ignore-parent-exclusion[Prevent from inheriting "AllCops/Exclude" from parent folders]' \
'--ignore-unrecognized-cops[Ignore unrecognized cops or departments in the config]' \
'--force-default-config[Use default configuration even if configuration files are present in the directory tree]' \
'(-s --stdin)'{-s,--stdin}'[Pipe source from STDIN, using FILE in offense reports]: :_files' \
'--editor-mode[Optimize real-time feedback in editors, adjusting behaviors for editing experience]' \
'(-P --parallel --no-parallel)'{-p,--parallel}'[Use available CPUs to execute inspection in parallel]' \
'(-P --parallel --no-parallel)--no-parallel[Execute not parallel]' \
'--raise-cop-error[Raise cop-related errors with cause and location]' \