Compare commits
No commits in common. "d4d30592c2e5e81c052ce4fec29a8a1ea23383f5" and "d3578edb5f2728c2b3c8d82501ca81d3e0ab575e" have entirely different histories.
d4d30592c2
...
d3578edb5f
|
|
@ -91,7 +91,7 @@ case $service in
|
||||||
;;
|
;;
|
||||||
(mp4dash)
|
(mp4dash)
|
||||||
options+=(
|
options+=(
|
||||||
'(- *)'{-h,--help}'[Show help message and exit]'
|
'(- *)'{-h,--help}'[Show this help message and exit]'
|
||||||
'(-v --verbose)'{-v,--verbose}'[Be verbose]'
|
'(-v --verbose)'{-v,--verbose}'[Be verbose]'
|
||||||
'(-d --debug)'{-d,--debug}'[Print out debugging information]'
|
'(-d --debug)'{-d,--debug}'[Print out debugging information]'
|
||||||
'(-o --output-dir)'{-o,--output-dir=}'[Output directory]:dir:_files -/'
|
'(-o --output-dir)'{-o,--output-dir=}'[Output directory]:dir:_files -/'
|
||||||
|
|
@ -148,7 +148,7 @@ case $service in
|
||||||
;;
|
;;
|
||||||
(mp4dashclone)
|
(mp4dashclone)
|
||||||
options+=(
|
options+=(
|
||||||
'(- *)'{-h,--help}'[Show help message and exit]'
|
'(- *)'{-h,--help}'[Show this help message and exit]'
|
||||||
'--quiet[Be quiet]'
|
'--quiet[Be quiet]'
|
||||||
'--encrypt=[Encrypt the media with KID and KEY specified in HEX(32 characters each)]:key'
|
'--encrypt=[Encrypt the media with KID and KEY specified in HEX(32 characters each)]:key'
|
||||||
'--exec-dir=[Directory where the Bento4 executables are located]:dir:_files -/'
|
'--exec-dir=[Directory where the Bento4 executables are located]:dir:_files -/'
|
||||||
|
|
@ -226,7 +226,7 @@ case $service in
|
||||||
;;
|
;;
|
||||||
(mp4hls)
|
(mp4hls)
|
||||||
options+=(
|
options+=(
|
||||||
'(- *)'{-h,--help}'[Show help message and exit]'
|
'(- *)'{-h,--help}'[Show this help message and exit]'
|
||||||
'(-v --verbose)'{-v,--verbose}'[Be verbose]'
|
'(-v --verbose)'{-v,--verbose}'[Be verbose]'
|
||||||
'(-d --debug)'{-d,--debug}'[Print out debugging information]'
|
'(-d --debug)'{-d,--debug}'[Print out debugging information]'
|
||||||
'(-o --output-dir)'{-o,--output-dir=}'[Output directory]:dir:_files -/'
|
'(-o --output-dir)'{-o,--output-dir=}'[Output directory]:dir:_files -/'
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@ _bitcoin-cli() {
|
||||||
local ret=1
|
local ret=1
|
||||||
|
|
||||||
_arguments -C \
|
_arguments -C \
|
||||||
-?'[Show help message]' \
|
-?'[This help message]' \
|
||||||
-addrinfo'[Get the number of addresses known to the node, per network and total]' \
|
-addrinfo'[Get the number of addresses known to the node, per network and total]' \
|
||||||
-chain='[Use the chain <chain> (default: main). Allowed values: main, test, signet, regtest]:chain:(main test signet regtest)' \
|
-chain='[Use the chain <chain> (default: main). Allowed values: main, test, signet, regtest]:chain:(main test signet regtest)' \
|
||||||
-color='[Color setting for CLI output (default: auto)]:when:(always auto never)' \
|
-color='[Color setting for CLI output (default: auto)]:when:(always auto never)' \
|
||||||
|
|
|
||||||
54
src/_bower
54
src/_bower
|
|
@ -43,15 +43,6 @@ local curcontext="$curcontext" state line _opts ret=1
|
||||||
|
|
||||||
_arguments -C \
|
_arguments -C \
|
||||||
'(- 1 *)'{-v,--version}'[display version information]' \
|
'(- 1 *)'{-v,--version}'[display version information]' \
|
||||||
'--force[make various commands more forceful]' \
|
|
||||||
'--json[output consumable JSON]' \
|
|
||||||
'--log-level[what level of logs to report]:log level:(error conflict warn action info debug)' \
|
|
||||||
"--offline[don't hit the network]" \
|
|
||||||
'--quiet[only output important information]' \
|
|
||||||
"--silent[don't output anything, besides errors]" \
|
|
||||||
'--verbose[make output more verbose]' \
|
|
||||||
'--allow-root[allow running commands as root]' \
|
|
||||||
'--no-color[disable colors]' \
|
|
||||||
'1: :->cmds' \
|
'1: :->cmds' \
|
||||||
'*:: :->args' && ret=0
|
'*:: :->args' && ret=0
|
||||||
|
|
||||||
|
|
@ -75,6 +66,17 @@ case $state in
|
||||||
"uninstall[remove a local package]" \
|
"uninstall[remove a local package]" \
|
||||||
"unregister[remove a package from the registry]" \
|
"unregister[remove a package from the registry]" \
|
||||||
"version[bump a package version]" && ret=0
|
"version[bump a package version]" && ret=0
|
||||||
|
_arguments \
|
||||||
|
'(--force)--force[make various commands more forceful]' \
|
||||||
|
'(--json)--json[output consumable JSON]' \
|
||||||
|
'(--log-level)--log-level[what level of logs to report]' \
|
||||||
|
"(--offline)--offline[don't hit the network]" \
|
||||||
|
'(--quiet)--quiet[only output important information]' \
|
||||||
|
"(--silent)--silent[don't output anything, besides errors]" \
|
||||||
|
'(--verbose)--verbose[make output more verbose]' \
|
||||||
|
'(--allow-root)--allow-root[allow running commands as root]' \
|
||||||
|
'(--version)--version[output Bower version]' \
|
||||||
|
'(--no-color)--no-color[disable colors]' && ret=0
|
||||||
;;
|
;;
|
||||||
args)
|
args)
|
||||||
case $line[1] in
|
case $line[1] in
|
||||||
|
|
@ -99,42 +101,42 @@ case $state in
|
||||||
;;
|
;;
|
||||||
(home|info|init|link|lookup|prune|register|search|unregister)
|
(home|info|init|link|lookup|prune|register|search|unregister)
|
||||||
_arguments \
|
_arguments \
|
||||||
'--help[show help message]' && ret=0
|
'(--help)--help[show help message]' && ret=0
|
||||||
;;
|
;;
|
||||||
install)
|
install)
|
||||||
_arguments \
|
_arguments \
|
||||||
'--force-latest[force latest version on conflict]' \
|
'(--force-latest)--force-latest[force latest version on conflict]' \
|
||||||
'--help[show help message]' \
|
'(--help)--help[show help message]' \
|
||||||
"--production[don't install project devDependencies]" \
|
"(--production)--production[don't install project devDependencies]" \
|
||||||
"--save[save installed packages into the project's bower.json dependencies]" \
|
"(--save)--save[save installed packages into the project's bower.json dependencies]" \
|
||||||
"--save-dev[save installed packages into the project's bower.json devDependencies]" && ret=0
|
"(--save-dev)--save-dev[save installed packages into the project's bower.json devDependencies]" && ret=0
|
||||||
;;
|
;;
|
||||||
list)
|
list)
|
||||||
_arguments \
|
_arguments \
|
||||||
'--help[show help message]' \
|
'(--help)--help[show help message]' \
|
||||||
'--paths[generate a simple JSON source mapping]' \
|
'(--paths)--paths[generate a simple JSON source mapping]' \
|
||||||
'--relative[make paths relative to the directory config property, which defaults to bower_components]' && ret=0
|
'(--relative)--relative[make paths relative to the directory config property, which defaults to bower_components]' && ret=0
|
||||||
;;
|
;;
|
||||||
login)
|
login)
|
||||||
_arguments \
|
_arguments \
|
||||||
'--help[show help message]' \
|
'(--help)--help[show help message]' \
|
||||||
'(-t --token)'{-t,--token}'[Pass GitHub auth token (will not prompt for username/password)]' && ret=0
|
'(-t --token)'{-t,--token}'[Pass GitHub auth token (will not prompt for username/password)]' && ret=0
|
||||||
;;
|
;;
|
||||||
uninstall)
|
uninstall)
|
||||||
_arguments \
|
_arguments \
|
||||||
'--help[show help message]' \
|
'(--help)--help[show help message]' \
|
||||||
"--save[save installed packages into the project's bower.json dependencies]" \
|
"(--save)--save[save installed packages into the project's bower.json dependencies]" \
|
||||||
"--save-dev[save installed packages into the project's bower.json devDependencies]" && ret=0
|
"(--save-dev)--save-dev[save installed packages into the project's bower.json devDependencies]" && ret=0
|
||||||
;;
|
;;
|
||||||
update)
|
update)
|
||||||
_arguments \
|
_arguments \
|
||||||
'--force-latest[force latest version on conflict]' \
|
'(--force-latest)--force-latest[force latest version on conflict]' \
|
||||||
'--help[show help message]' \
|
'(--help)--help[show help message]' \
|
||||||
"--production[don't install project devDependencies]" && ret=0
|
"(--production)--production[don't install project devDependencies]" && ret=0
|
||||||
;;
|
;;
|
||||||
version)
|
version)
|
||||||
_arguments \
|
_arguments \
|
||||||
'--message[custom git commit and tag message]' && ret=0
|
'(--message)--message[custom git commit and tag message]' && ret=0
|
||||||
;;
|
;;
|
||||||
exec)
|
exec)
|
||||||
_normal && ret=0
|
_normal && ret=0
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,7 @@ _bundle() {
|
||||||
|
|
||||||
local ret=1
|
local ret=1
|
||||||
|
|
||||||
_arguments -C \
|
_arguments -C -A "-v" -A "--version" \
|
||||||
'(- 1 *)'{-v,--version}'[display version information]' \
|
'(- 1 *)'{-v,--version}'[display version information]' \
|
||||||
'(-r --retry)'{-r,--retry}'[specify the number of times you with to attempt network commands]:number:' \
|
'(-r --retry)'{-r,--retry}'[specify the number of times you with to attempt network commands]:number:' \
|
||||||
'(-V --verbose)'{-V,--verbose}'[print out additional logging information]' \
|
'(-V --verbose)'{-V,--verbose}'[print out additional logging information]' \
|
||||||
|
|
|
||||||
22
src/_cask
22
src/_cask
|
|
@ -46,16 +46,17 @@ function _cask() {
|
||||||
local curcontext="$curcontext"
|
local curcontext="$curcontext"
|
||||||
|
|
||||||
_arguments -C \
|
_arguments -C \
|
||||||
|
'(--proxy --http-proxy --https-proxy)--proxy[Set emacs proxy for HTTPS and HTTPS]:host:_hosts' \
|
||||||
'(--proxy --http-proxy)--http-proxy[Set emacs proxy for HTTP]:host:_hosts' \
|
'(--proxy --http-proxy)--http-proxy[Set emacs proxy for HTTP]:host:_hosts' \
|
||||||
'(--proxy --https-proxy)--https-proxy[Set emacs proxy for HTTPS]:host:_hosts' \
|
'(--proxy --https-proxy)--https-proxy[Set emacs proxy for HTTPS]:host:_hosts' \
|
||||||
'( --http-proxy --https-proxy)--proxy[Set emacs proxy for HTTPS and HTTPS]:host:_hosts' \
|
'(--proxy --http-proxy --https-proxy)--proxy[Set emacs proxy for HTTPS and HTTPS]:host:_hosts' \
|
||||||
'--no-proxy[Set Emacs no-proxy to HOST (emacs pattern of hosts to not use proxy for)]:pattern:_hosts' \
|
'--no-proxy[Set Emacs no-proxy to HOST]:host:_hosts' \
|
||||||
'(- *)--version[Print Cask version and exit]' \
|
'(- *)--version[Print Cask version and exit]' \
|
||||||
'(- *)'{-h,--help}'[Display usage or information for command]::command:->subcommand' \
|
'(- *)'{-h,--help}'[Display usage or information for command]::command:->subcommand' \
|
||||||
'--debug[Turn on debug output]' \
|
'--debug[Turn on debug output]' \
|
||||||
'--path[Run command in this PATH instead of default-directory]:dir:_files -/' \
|
'--path[Run command in this PATH instead of default-directory]:dir:_files -/' \
|
||||||
'(--verbose --silent)--verbose[Be verbose and show debug output]' \
|
'(--verbose --silent)--verbose[Be verbose and show debug output]' \
|
||||||
'(--verbose --silent)--silent[Be silent and do not show anything]' \
|
'(--verbose --silent)--verbose[Be slient and do not show anything]' \
|
||||||
':subcommand:->subcommand' \
|
':subcommand:->subcommand' \
|
||||||
'*:: :->subcmds' \
|
'*:: :->subcmds' \
|
||||||
&& ret=0
|
&& ret=0
|
||||||
|
|
@ -65,8 +66,6 @@ function _cask() {
|
||||||
local -a subcommands=(
|
local -a subcommands=(
|
||||||
"build:build all Elisp files in the files directive"
|
"build:build all Elisp files in the files directive"
|
||||||
"clean-elc:remove all byte compiled Elisp files in the files directive"
|
"clean-elc:remove all byte compiled Elisp files in the files directive"
|
||||||
"emacs:run emacs"
|
|
||||||
"eval:evaluate FORM as a lisp form"
|
|
||||||
"exec:execute command with correct 'exec-path' and 'load-path'"
|
"exec:execute command with correct 'exec-path' and 'load-path'"
|
||||||
"exec-path:print 'exec-path' for all packages and dependencies"
|
"exec-path:print 'exec-path' for all packages and dependencies"
|
||||||
"files:print list of files specified in the files directive"
|
"files:print list of files specified in the files directive"
|
||||||
|
|
@ -100,19 +99,6 @@ function _cask() {
|
||||||
(exec)
|
(exec)
|
||||||
_generic
|
_generic
|
||||||
;;
|
;;
|
||||||
(emacs)
|
|
||||||
_as_if emacs && ret=0
|
|
||||||
;;
|
|
||||||
(help)
|
|
||||||
_as_if cask --help && ret=0
|
|
||||||
;;
|
|
||||||
(link)
|
|
||||||
_message "completion unimplemented"
|
|
||||||
ret=0
|
|
||||||
;;
|
|
||||||
(package)
|
|
||||||
_wanted package-dir expl 'package directory' _files -/ && ret=0
|
|
||||||
;;
|
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ _chatblade() {
|
||||||
typeset -A opt_args
|
typeset -A opt_args
|
||||||
|
|
||||||
args+=(
|
args+=(
|
||||||
'(- *)'{-h,--help}'[show help message and exit]'
|
'(- *)'{-h,--help}'[show this help message and exit]'
|
||||||
'(- *)--version[display the chatblade version]'
|
'(- *)--version[display the chatblade version]'
|
||||||
'--openai-api-key[the OpenAI API key can also be set as env variable OPENAI_API_KEY]:key'
|
'--openai-api-key[the OpenAI API key can also be set as env variable OPENAI_API_KEY]:key'
|
||||||
'--openai-base-url[a custom URL to use the openAI against a local or custom model]:key'
|
'--openai-base-url[a custom URL to use the openAI against a local or custom model]:key'
|
||||||
|
|
|
||||||
10
src/_chcpu
10
src/_chcpu
|
|
@ -35,12 +35,12 @@
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
_arguments \
|
_arguments \
|
||||||
'(- *)'{-h,--help}'[display help]' \
|
'(- *)'{-h,--help}'[display this help]' \
|
||||||
'(- *)'{-V,--version}'[display version]' \
|
'(- *)'{-V,--version}'[display version]' \
|
||||||
'(-c --configure)'{-c,--configure}'[configure the specified CPUs]:cpu list (0,5,7,9-11)' \
|
'(-c --configure)'{-c,--configure}'[configure the specified CPUs]:cpu_list' \
|
||||||
'(-d --disable)'{-d,--disable}'[disable the specified CPUs]:cpu list (0,5,7,9-11)' \
|
'(-d --disable)'{-d,--disable}'[disable the specified CPUs]:cpu_list' \
|
||||||
'(-e --enable)'{-e,--enable}'[enable the specified CPUs]:cpu list (0,5,7,9-11)' \
|
'(-e --enable)'{-e,--enable}'[enable the specified CPUs]:cpu_list' \
|
||||||
'(-g --deconfigure)'{-g,--deconfigure}'[deconfigure the specified CPUs]:cpu_list (0,5,7,9-11)' \
|
'(-g --deconfigure)'{-g,--deconfigure}'[deconfigure the specified CPUs]:cpu_list' \
|
||||||
'(-p --dispatch)'{-p,--dispatch}'[set the CPU dispatching mode]:mode:(horizontal vertical)' \
|
'(-p --dispatch)'{-p,--dispatch}'[set the CPU dispatching mode]:mode:(horizontal vertical)' \
|
||||||
'(-r --rescan)'{-r,--rescan}'[trigger a rescan of CPUs]'
|
'(-r --rescan)'{-r,--rescan}'[trigger a rescan of CPUs]'
|
||||||
|
|
||||||
|
|
|
||||||
23
src/_chmem
23
src/_chmem
|
|
@ -35,29 +35,14 @@
|
||||||
# *Aditi Sharma (https://github.com/Aditi76117)
|
# *Aditi Sharma (https://github.com/Aditi76117)
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
local arg
|
|
||||||
if (( ${words[(I)(-b|--blocks)]} )); then
|
|
||||||
arg=blockrange
|
|
||||||
else
|
|
||||||
arg='size or range'
|
|
||||||
fi
|
|
||||||
if (( ${words[(I)(-e|-d|-c|-m|--disable|--enable|--deconfigure|--configure)]} )); then
|
|
||||||
arg="1:${arg}"
|
|
||||||
else
|
|
||||||
unset arg
|
|
||||||
fi
|
|
||||||
_arguments -s \
|
_arguments -s \
|
||||||
'(-b --blocks)'{-b,--blocks}'[Use a BLOCKRANGE parameter instead of RANGE or SIZE]' \
|
'(-b --blocks)'{-b,--blocks}'[Use a BLOCKRANGE parameter instead of RANGE or SIZE]' \
|
||||||
'(-e --enable -d --disable -c --configure -g --deconfigure -m --memmap-on-memory)'{-d,--disable}'[Set the specified RANGE, SIZE, or BLOCKRANGE of memory offline]' \
|
'(-d --disable)'{-d,--disable}'[Set the specified RANGE, SIZE, or BLOCKRANGE of memory offline]' \
|
||||||
'(-e --enable -d --disable -c --configure -g --deconfigure -m --memmap-on-memory)'{-e,--enable}'[Set the specified RANGE, SIZE, or BLOCKRANGE of memory online]' \
|
'(-e --enable)'{-e,--enable}'[Set the specified RANGE, SIZE, or BLOCKRANGE of memory online]' \
|
||||||
'(-e --enable -d --disable -c --configure -g --deconfigure -m --memmap-on-memory)'{-g,--deconfigure}'[Deconfigure the specified RANGE, SIZE, or BLOCKRANGE of memory]' \
|
'(-z --zone)'{-z,--zone}'[Select the memory ZONE where to set the specified RANGE, SIZE, or BLOCKRANGE of memory online or offline]' \
|
||||||
'(-e --enable -d --disable -c --configure -g --deconfigure )'{-c,--configure}'[Configure the specified RANGE, SIZE, or BLOCKRANGE of memory]' \
|
|
||||||
'(-e --enable -d --disable -g --deconfigure -m --memmap-on-memory)'{-m,--memmap-on-memory}'[Select memmap-on-memory for the specified memory]:memmap-on-memory' \
|
|
||||||
'(-z --zone)'{-z,--zone}'[Select the memory ZONE where to set the specified RANGE, SIZE, or BLOCKRANGE of memory online or offline]:zone' \
|
|
||||||
'(-v --verbose)'{-v,--verbose}'[Verbose mode]' \
|
'(-v --verbose)'{-v,--verbose}'[Verbose mode]' \
|
||||||
'(- *)'{-h,--help}'[Display help text and exit]' \
|
'(- *)'{-h,--help}'[Display help text and exit]' \
|
||||||
'(- *)'{-V,--version}'[Print version and exit]' \
|
'(- *)'{-V,--version}'[Print version and exit]'
|
||||||
${arg}
|
|
||||||
|
|
||||||
# Local Variables:
|
# Local Variables:
|
||||||
# mode: Shell-Script
|
# mode: Shell-Script
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,7 @@
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
_arguments \
|
_arguments \
|
||||||
'(- *)'{-h,--help}'[display help]' \
|
'(- *)'{-h,--help}'[display this help]' \
|
||||||
'(-c --crypt-method)'{-c,--crypt-method}'[use the specified method to encrypt the passwords]:method:(DES MD5 SHA256 SHA512 YESCRYPT NONE)' \
|
'(-c --crypt-method)'{-c,--crypt-method}'[use the specified method to encrypt the passwords]:method:(DES MD5 SHA256 SHA512 YESCRYPT NONE)' \
|
||||||
'(-e --encrypted)'{-e,--encrypted}'[supplied passwords are in encrypted form]' \
|
'(-e --encrypted)'{-e,--encrypted}'[supplied passwords are in encrypted form]' \
|
||||||
'(-m --md5)'{-m,--md5}'[use MD5 encryption instead of DES]' \
|
'(-m --md5)'{-m,--md5}'[use MD5 encryption instead of DES]' \
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,7 @@ _arguments -s -S \
|
||||||
'(-b --bare)'{-b,--bare}'[compile without a top-level function wrapper]' \
|
'(-b --bare)'{-b,--bare}'[compile without a top-level function wrapper]' \
|
||||||
'(-c --compile)'{-c,--compile}'[compile to JavaScript and save as .js files]' \
|
'(-c --compile)'{-c,--compile}'[compile to JavaScript and save as .js files]' \
|
||||||
'(-e --eval)'{-e,--eval}'[pass a string from the command line as input]:Inline Script' \
|
'(-e --eval)'{-e,--eval}'[pass a string from the command line as input]:Inline Script' \
|
||||||
'(- *)'{-h,--help}'[display help message]' \
|
'(- *)'{-h,--help}'[display this help message]' \
|
||||||
'(-i --interactive)'{-i,--interactive}'[run an interactive CoffeeScript REPL]' \
|
'(-i --interactive)'{-i,--interactive}'[run an interactive CoffeeScript REPL]' \
|
||||||
'(-j --join)'{-j,--join}'[concatenate the source CoffeeScript before compiling]: :_files -g "*.coffee"' \
|
'(-j --join)'{-j,--join}'[concatenate the source CoffeeScript before compiling]: :_files -g "*.coffee"' \
|
||||||
'(-l --literate)'{-l,--literate}'[treat stdio as literate style coffeescript]' \
|
'(-l --literate)'{-l,--literate}'[treat stdio as literate style coffeescript]' \
|
||||||
|
|
|
||||||
|
|
@ -78,7 +78,7 @@ _cppcheck() {
|
||||||
"(-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]" \
|
"(--fsigned-char --funsigned-char)--fsigned-char[Treat char type as signed]" \
|
||||||
"(--fsigned-char --funsigned-char)--funsigned-char[Treat char type as unsigned]" \
|
"(--fsigned-char --funsigned-char)--funsigned-char[Treat char type as unsigned]" \
|
||||||
"(- 1 *)"{-h,--help}"[Print help]" \
|
"(- 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" \
|
||||||
|
|
|
||||||
|
|
@ -49,7 +49,7 @@ _direnv_commands() {
|
||||||
'exec:Executes a command after loading the first .envrc or .env found in DIR'
|
'exec:Executes a command after loading the first .envrc or .env found in DIR'
|
||||||
'export:Loads an .envrc or .env and prints the diff in terms of exports'
|
'export:Loads an .envrc or .env and prints the diff in terms of exports'
|
||||||
"fetchurl:Fetches a given URL into direnv's CAS"
|
"fetchurl:Fetches a given URL into direnv's CAS"
|
||||||
'help:shows help'
|
'help:shows this help'
|
||||||
'hook:Used to setup the shell hook'
|
'hook:Used to setup the shell hook'
|
||||||
'prune:removes old allowed files'
|
'prune:removes old allowed files'
|
||||||
'reload:triggers an env reload'
|
'reload:triggers an env reload'
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,7 @@
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
_arguments \
|
_arguments \
|
||||||
'(- *)'{-h,--help}'[Show help message and exit]' \
|
'(- *)'{-h,--help}'[Show this help message and exit]' \
|
||||||
'(- *)'{-v,--version}'[Show version and exit]' \
|
'(- *)'{-v,--version}'[Show version and exit]' \
|
||||||
'(-d --devel-release)'{-d,--devel-release}'[Upgrade to the development release]' \
|
'(-d --devel-release)'{-d,--devel-release}'[Upgrade to the development release]' \
|
||||||
'--data-dir=[Directory that contains the data files]:dir:_files -/' \
|
'--data-dir=[Directory that contains the data files]:dir:_files -/' \
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
local -a args=(
|
local -a args=(
|
||||||
'(-h --help)'{-h+,--help}'[show help message and exit]'
|
'(-h --help)'{-h+,--help}'[show this help message and exit]'
|
||||||
'(-)'--version'[display version information and exit]'
|
'(-)'--version'[display version information and exit]'
|
||||||
'(-)1:directory: _path_files -/'
|
'(-)1:directory: _path_files -/'
|
||||||
'(-)2:command: _command_names -e'
|
'(-)2:command: _command_names -e'
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@ _fail2ban_client() {
|
||||||
'-b[start server in background]' \
|
'-b[start server in background]' \
|
||||||
'-f[start server in foreground]' \
|
'-f[start server in foreground]' \
|
||||||
'--str2sec[convert time abbreviation format to seconds]:_message str2sec' \
|
'--str2sec[convert time abbreviation format to seconds]:_message str2sec' \
|
||||||
'(-h --help)'{-h,--help}'[display help message]' \
|
'(-h --help)'{-h,--help}'[display this help message]' \
|
||||||
'(-V --version)'{-V,--version}'[print the version]' \
|
'(-V --version)'{-V,--version}'[print the version]' \
|
||||||
'1:fail2ban command:_fail2ban_client_commands' \
|
'1:fail2ban command:_fail2ban_client_commands' \
|
||||||
'*:fail2ban command argument:_fail2ban_client_command_arguments'
|
'*:fail2ban command argument:_fail2ban_client_command_arguments'
|
||||||
|
|
|
||||||
|
|
@ -38,16 +38,16 @@
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
_arguments \
|
_arguments \
|
||||||
'(-c --collapse-range -d --dig-holes -p --punch-hole -z --zero-range -n --keep-size)'{-c,--collapse-range}'[Removes a byte range from a file without leaving a hole]' \
|
'(-c --collapse-range)'{-c,--collapse-range}'[Removes a byte range from a file without leaving a hole]' \
|
||||||
'(-c --collapse-range -d --dig-holes -p --punch-hole -z --zero-range -n --keep-size)'{-d,--dig-holes}'[Detect and dig holes]' \
|
'(-d --dig-holes)'{-d,--dig-holes}'[Detect and dig holes]' \
|
||||||
'(-c --collapse-range -d --dig-holes -p --punch-hole -z --zero-range -n --keep-size)'{-p,--punch-hole}'[Deallocates space in the byte range starting at offset and continuing for length bytes]' \
|
|
||||||
'(-c --collapse-range -d --dig-holes -p --punch-hole -z --zero-range )'{-z,--zero-range}'[Zeroes space in the byte range starting at offset and continuing for length bytes]' \
|
|
||||||
'(-c --collapse-range -d --dig-holes -p --punch-hole -n --keep-size)'{-n,--keep-size}'[Do not modify the apparent length of the file]' \
|
|
||||||
'(-i --insert-range)'{-i,--insert-range}'[Insert a hole of length bytes from offset]' \
|
'(-i --insert-range)'{-i,--insert-range}'[Insert a hole of length bytes from offset]' \
|
||||||
'(-l --length)'{-l+,--length}'[Specifies the length of the range, in bytes]:bytes' \
|
'(-l --length)'{-l+,--length}'[Specifies the length of the range, in bytes]:bytes' \
|
||||||
|
'(-n --keep-size)'{-n,--keep-size}'[Do not modify the apparent length of the file]' \
|
||||||
'(-o --offset)'{-o+,--offset}'[Specifies the beginning offset of the range, in bytes]:offset' \
|
'(-o --offset)'{-o+,--offset}'[Specifies the beginning offset of the range, in bytes]:offset' \
|
||||||
|
'(-p --punch-hole)'{-p,--punch-hole}'[Deallocates space in the byte range starting at offset and continuing for length bytes]' \
|
||||||
'(-v --verbose)'{-v,--verbose}'[Enable verbose mode]' \
|
'(-v --verbose)'{-v,--verbose}'[Enable verbose mode]' \
|
||||||
'(-x --posix)'{-x,--posix}'[Enable POSIX operation mode]' \
|
'(-x --posix)'{-x,--posix}'[Enable POSIX operation mode]' \
|
||||||
|
'(-z --zero-range)'{-z,--zero-range}'[Zeroes space in the byte range starting at offset and continuing for length bytes]' \
|
||||||
'(- *)'{-h,--help}'[Display help text and exit]' \
|
'(- *)'{-h,--help}'[Display help text and exit]' \
|
||||||
'(- *)'{-V,--version}'[Print version and exit]' \
|
'(- *)'{-V,--version}'[Print version and exit]' \
|
||||||
'*:filename:_files'
|
'*:filename:_files'
|
||||||
|
|
|
||||||
2
src/_ghc
2
src/_ghc
|
|
@ -922,7 +922,7 @@ _ghc_pkg() {
|
||||||
'--expand-env-vars[expand environment variables in input package descriptions]'
|
'--expand-env-vars[expand environment variables in input package descriptions]'
|
||||||
'(--expand-pkgroot --no-expand-pkgroot)--expand-pkgroot[expand pkgroot-relative paths in output package descriptions]'
|
'(--expand-pkgroot --no-expand-pkgroot)--expand-pkgroot[expand pkgroot-relative paths in output package descriptions]'
|
||||||
'(--expand-pkgroot --no-expand-pkgroot)--no-expand-pkgroot[preserve pkgroot-relative paths in output package descriptions]'
|
'(--expand-pkgroot --no-expand-pkgroot)--no-expand-pkgroot[preserve pkgroot-relative paths in output package descriptions]'
|
||||||
'(- *)'{-?,--help}'[display help and exit]'
|
'(- *)'{-?,--help}'[display this help and exit]'
|
||||||
'(- *)'{-V,--version}'[output version information and exit]'
|
'(- *)'{-V,--version}'[output version information and exit]'
|
||||||
'--simple-output[print output in easy-to-parse format for some commands]'
|
'--simple-output[print output in easy-to-parse format for some commands]'
|
||||||
'--show-unit-ids[print unit-ids instead of package identifiers]'
|
'--show-unit-ids[print unit-ids instead of package identifiers]'
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@
|
||||||
|
|
||||||
_glances() {
|
_glances() {
|
||||||
_arguments \
|
_arguments \
|
||||||
'(- *)'{-h,--help}'[show help message and exit]' \
|
'(- *)'{-h,--help}'[show this help message and exit]' \
|
||||||
'--print-completion[print shell completion script]:shell:(bash zsh tcsh)' \
|
'--print-completion[print shell completion script]:shell:(bash zsh tcsh)' \
|
||||||
'(- *)'{-V,--version}"[show program's version number and exit]" \
|
'(- *)'{-V,--version}"[show program's version number and exit]" \
|
||||||
'(-d --debug)'{-d,--debug}'[enable debug mode]' \
|
'(-d --debug)'{-d,--debug}'[enable debug mode]' \
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
_arguments -s \
|
_arguments -s \
|
||||||
'(- *)'{-h,--help}'[display help and exit]' \
|
'(- *)'{-h,--help}'[display this help and exit]' \
|
||||||
'(- *)'{-v,--version}'[display version information and exit]' \
|
'(- *)'{-v,--version}'[display version information and exit]' \
|
||||||
{-t,--traditional}'[use traditional greeting]' \
|
{-t,--traditional}'[use traditional greeting]' \
|
||||||
{-g,--greeting=}'[use TEXT as the greeting message]:TEXT'
|
{-g,--greeting=}'[use TEXT as the greeting message]:TEXT'
|
||||||
|
|
|
||||||
|
|
@ -64,7 +64,7 @@ args=(
|
||||||
'--forecast=[apply periodic transaction rules to generate future transactions]'
|
'--forecast=[apply periodic transaction rules to generate future transactions]'
|
||||||
)
|
)
|
||||||
|
|
||||||
_arguments -C -A "-*" "$args[@]" \
|
_arguments -C "$args[@]" -A "-*" \
|
||||||
'(- *)--version[print version information]' \
|
'(- *)--version[print version information]' \
|
||||||
'--debug[show debug output]' \
|
'--debug[show debug output]' \
|
||||||
'1: :->cmds' \
|
'1: :->cmds' \
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@ _kitchen() {
|
||||||
args)
|
args)
|
||||||
case $line[1] in
|
case $line[1] in
|
||||||
converge|create|destroy|diagnose|list|setup|test|verify)
|
converge|create|destroy|diagnose|list|setup|test|verify)
|
||||||
_wanted all-instances expl 'all instances' compadd 'all'
|
compadd 'all'
|
||||||
_kitchen_instances
|
_kitchen_instances
|
||||||
;;
|
;;
|
||||||
login)
|
login)
|
||||||
|
|
|
||||||
|
|
@ -90,7 +90,7 @@ case $state in
|
||||||
'gs-load-lily-fonts[load only LilyPond fonts via Ghostscript]:gs-load-lily-fonts:(\#t \#f)' \
|
'gs-load-lily-fonts[load only LilyPond fonts via Ghostscript]:gs-load-lily-fonts:(\#t \#f)' \
|
||||||
'gs-never-embed-fonts[make Ghostscript embed only TrueType fonts and no other font format]:gs-never-embed-fonts:(\#t \#f)' \
|
'gs-never-embed-fonts[make Ghostscript embed only TrueType fonts and no other font format]:gs-never-embed-fonts:(\#t \#f)' \
|
||||||
'gui[run LilyPond from a GUI and redirect stderr to a log file]:gui:(\#t \#f)' \
|
'gui[run LilyPond from a GUI and redirect stderr to a log file]:gui:(\#t \#f)' \
|
||||||
'help[show help]:help:(\#t \#f)' \
|
'help[show this help]:help:(\#t \#f)' \
|
||||||
'include-book-title-preview[include book titles in preview images]:include-book-title-preview:(\#t \#f)' \
|
'include-book-title-preview[include book titles in preview images]:include-book-title-preview:(\#t \#f)' \
|
||||||
'include-eps-fonts[include fonts in separate-system EPS files]:include-eps-fonts:(\#t \#f)' \
|
'include-eps-fonts[include fonts in separate-system EPS files]:include-eps-fonts:(\#t \#f)' \
|
||||||
'include-settings[included file before the score is processed]:include-settings:_files -g "*.(#i)ly(-.)"' \
|
'include-settings[included file before the score is processed]:include-settings:_files -g "*.(#i)ly(-.)"' \
|
||||||
|
|
|
||||||
|
|
@ -80,7 +80,7 @@ _lscpu_cache() {
|
||||||
}
|
}
|
||||||
|
|
||||||
_arguments \
|
_arguments \
|
||||||
'(- *)'{-h,--help}'[display help]' \
|
'(- *)'{-h,--help}'[display this help]' \
|
||||||
'(- *)'{-V,--version}'[display version]' \
|
'(- *)'{-V,--version}'[display version]' \
|
||||||
'(-a --all)'{-a,--all}'[print both online and offline CPUs(default for -e)]' \
|
'(-a --all)'{-a,--all}'[print both online and offline CPUs(default for -e)]' \
|
||||||
'(-b --online)'{-b,--online}'[print online CPUs only]' \
|
'(-b --online)'{-b,--online}'[print online CPUs only]' \
|
||||||
|
|
|
||||||
|
|
@ -91,7 +91,7 @@ _lsipc_output_columns() {
|
||||||
}
|
}
|
||||||
|
|
||||||
_arguments \
|
_arguments \
|
||||||
'(- *)'{-h,--help}'[display help]' \
|
'(- *)'{-h,--help}'[display this help]' \
|
||||||
'(- *)'{-V,--version}'[display version]' \
|
'(- *)'{-V,--version}'[display version]' \
|
||||||
'(-m --shmems)'{-m,--shmems}'[shared memory segments]' \
|
'(-m --shmems)'{-m,--shmems}'[shared memory segments]' \
|
||||||
'(-M --posix-shmems)'{-M,--posix-shmems}'[POSIX shared memory segments]' \
|
'(-M --posix-shmems)'{-M,--posix-shmems}'[POSIX shared memory segments]' \
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,7 @@ _lslocks_output_columns() {
|
||||||
}
|
}
|
||||||
|
|
||||||
_arguments \
|
_arguments \
|
||||||
'(- *)'{-h,--help}'[display help]' \
|
'(- *)'{-h,--help}'[display this help]' \
|
||||||
'(- *)'{-V,--version}'[display version]' \
|
'(- *)'{-V,--version}'[display version]' \
|
||||||
'(-b --bytes)'{-b,--bytes}'[print SIZE in bytes rather]' \
|
'(-b --bytes)'{-b,--bytes}'[print SIZE in bytes rather]' \
|
||||||
'(-J --json)'{-J,--json}'[use the JSON output format]' \
|
'(-J --json)'{-J,--json}'[use the JSON output format]' \
|
||||||
|
|
|
||||||
|
|
@ -70,7 +70,7 @@ _lslogins_output_columns() {
|
||||||
}
|
}
|
||||||
|
|
||||||
_arguments \
|
_arguments \
|
||||||
'(- *)'{-h,--help}'[display help]' \
|
'(- *)'{-h,--help}'[display this help]' \
|
||||||
'(- *)'{-V,--version}'[display version]' \
|
'(- *)'{-V,--version}'[display version]' \
|
||||||
'(-a --acc-expiration)'{-a,--acc-expiration}'[display info about passwords expiration]' \
|
'(-a --acc-expiration)'{-a,--acc-expiration}'[display info about passwords expiration]' \
|
||||||
'(-c --colon-separate)'{-c,--colon-separate}'[display data in a format similar to /etc/passwd]' \
|
'(-c --colon-separate)'{-c,--colon-separate}'[display data in a format similar to /etc/passwd]' \
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,7 @@ _lsmem_output_columns() {
|
||||||
}
|
}
|
||||||
|
|
||||||
_arguments \
|
_arguments \
|
||||||
'(- *)'{-h,--help}'[display help]' \
|
'(- *)'{-h,--help}'[display this help]' \
|
||||||
'(- *)'{-V,--version}'[display version]' \
|
'(- *)'{-V,--version}'[display version]' \
|
||||||
'(-J --json)'{-J,--json}'[use the JSON output format]' \
|
'(-J --json)'{-J,--json}'[use the JSON output format]' \
|
||||||
'(-P --pairs)'{-P,--pairs}'[use key=value output format]' \
|
'(-P --pairs)'{-P,--pairs}'[use key=value output format]' \
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@
|
||||||
|
|
||||||
_arguments \
|
_arguments \
|
||||||
{-f,--file}'[Use file as as cookie seed]:file:_files' \
|
{-f,--file}'[Use file as as cookie seed]:file:_files' \
|
||||||
{-m,--max-size}'[Set maximum length of output]:bytes' \
|
{-m,--max-size}'[Set maximum length of output]:number' \
|
||||||
{-v,--verbose}'[Print entropy source and random seed info]' \
|
{-v,--verbose}'[Print entropy source and random seed info]' \
|
||||||
'(- *)'{-h,--help}'[Display help message and exit]' \
|
'(- *)'{-h,--help}'[Display help message and exit]' \
|
||||||
'(- *)'{-V,--version}'[Display version information and exit]'
|
'(- *)'{-V,--version}'[Display version information and exit]'
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
_arguments \
|
_arguments \
|
||||||
'(- *)--help[display help message]' \
|
'(- *)--help[display this help message]' \
|
||||||
'-d-[Verbose debug]:level:(0 1 2)' \
|
'-d-[Verbose debug]:level:(0 1 2)' \
|
||||||
'-v-[SSH debug levels]:level:(0 1 2 3)' \
|
'-v-[SSH debug levels]:level:(0 1 2 3)' \
|
||||||
'-m-[Run concurrently on the specified hosts at a time. "0" is used for infinite]:count' \
|
'-m-[Run concurrently on the specified hosts at a time. "0" is used for infinite]:count' \
|
||||||
|
|
|
||||||
|
|
@ -77,8 +77,8 @@ if [[ -n $state ]]; then
|
||||||
+) _message -e lines "start at a given line" ;;
|
+) _message -e lines "start at a given line" ;;
|
||||||
+[crCR]#[/?]) _message -e 'search string' ;;
|
+[crCR]#[/?]) _message -e 'search string' ;;
|
||||||
+<->,) _message -e 'column number' ;;
|
+<->,) _message -e 'column number' ;;
|
||||||
*) _files ;;
|
*) _files && ret=0 ;;
|
||||||
esac && ret=0
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
return ret
|
return ret
|
||||||
|
|
|
||||||
|
|
@ -53,7 +53,7 @@ _openvpn3_config-acl() {
|
||||||
_arguments \
|
_arguments \
|
||||||
{-s,--show}"[Show the current access control lists]" \
|
{-s,--show}"[Show the current access control lists]" \
|
||||||
{-o,--path}"[OBJ-PATH Path to the configuration in the configuration manager]: :($configs_paths)" \
|
{-o,--path}"[OBJ-PATH Path to the configuration in the configuration manager]: :($configs_paths)" \
|
||||||
{-h,--help}"[Show help screen]" \
|
{-h,--help}"[This help screen]" \
|
||||||
{-c,--config}"[CONFIG-NAME Alternative to --path, where configuration profile name is used instead]: :($configs_names)" \
|
{-c,--config}"[CONFIG-NAME Alternative to --path, where configuration profile name is used instead]: :($configs_names)" \
|
||||||
{-S,--seal}"[Make the configuration profile permanently read-only]" \
|
{-S,--seal}"[Make the configuration profile permanently read-only]" \
|
||||||
{-R,--revoke}"[<UID | username> Revoke this user access from this configuration profile]" \
|
{-R,--revoke}"[<UID | username> Revoke this user access from this configuration profile]" \
|
||||||
|
|
@ -67,7 +67,7 @@ _openvpn3_config-import() {
|
||||||
_arguments \
|
_arguments \
|
||||||
{-p,--persistent}"[Make the configuration profile persistent through service restarts]" \
|
{-p,--persistent}"[Make the configuration profile persistent through service restarts]" \
|
||||||
{-n,--name}"[NAME Provide a different name for the configuration (default: CFG-FILE)]" \
|
{-n,--name}"[NAME Provide a different name for the configuration (default: CFG-FILE)]" \
|
||||||
{-h,--help}"[Show help screen]" \
|
{-h,--help}"[This help screen]" \
|
||||||
{-c,--config}"[CFG-FILE Configuration file to import]: :_files"
|
{-c,--config}"[CFG-FILE Configuration file to import]: :_files"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -76,7 +76,7 @@ _openvpn3_config-manage() {
|
||||||
{-s,--show}"[Show current configuration options]" \
|
{-s,--show}"[Show current configuration options]" \
|
||||||
{-r,--rename}"[NEW-CONFIG-NAME Renames the configuration]" \
|
{-r,--rename}"[NEW-CONFIG-NAME Renames the configuration]" \
|
||||||
{-o,--path}"[CONFIG-PATH Path to the configuration in the configuration manager]: :($configs_paths)" \
|
{-o,--path}"[CONFIG-PATH Path to the configuration in the configuration manager]: :($configs_paths)" \
|
||||||
{-h,--help}"[Show help screen]" \
|
{-h,--help}"[This help screen]" \
|
||||||
{-c,--config}"[CONFIG-NAME Alternative to --path, where configuration profile name is used instead]: :($configs_names)" \
|
{-c,--config}"[CONFIG-NAME Alternative to --path, where configuration profile name is used instead]: :($configs_names)" \
|
||||||
"--unset-override[<name> Removes the <name> override]" \
|
"--unset-override[<name> Removes the <name> override]" \
|
||||||
"--tls-version-min[<tls_1_0|tls_1_1|tls_1_2|tls_1_3> Sets the minimal TLS version for the control channel]: :(tls_1_0 tls_1_1 tls_1_2 tls_1_3)" \
|
"--tls-version-min[<tls_1_0|tls_1_1|tls_1_2|tls_1_3> Sets the minimal TLS version for the control channel]: :(tls_1_0 tls_1_1 tls_1_2 tls_1_3)" \
|
||||||
|
|
@ -103,7 +103,7 @@ _openvpn3_config-manage() {
|
||||||
_openvpn3_config-remove() {
|
_openvpn3_config-remove() {
|
||||||
_arguments \
|
_arguments \
|
||||||
{-o,--path}"[OBJ-PATH Path to the configuration in the configuration manager]: :($configs_paths)" \
|
{-o,--path}"[OBJ-PATH Path to the configuration in the configuration manager]: :($configs_paths)" \
|
||||||
{-h,--help}"[Show help screen]" \
|
{-h,--help}"[This help screen]" \
|
||||||
{-c,--config}"[CONFIG-NAME Alternative to --path, where configuration profile name is used instead]: :($configs_names)" \
|
{-c,--config}"[CONFIG-NAME Alternative to --path, where configuration profile name is used instead]: :($configs_names)" \
|
||||||
"--force[Force the deletion process without asking for confirmation]" \
|
"--force[Force the deletion process without asking for confirmation]" \
|
||||||
"--config-path[OBJ-PATH Alias for --path]: :($configs_paths)"
|
"--config-path[OBJ-PATH Alias for --path]: :($configs_paths)"
|
||||||
|
|
@ -113,24 +113,24 @@ _openvpn3_config-show() {
|
||||||
_arguments \
|
_arguments \
|
||||||
{-o,--path}"[OBJ-PATH Path to the configuration in the configuration manager]: :($configs_paths)" \
|
{-o,--path}"[OBJ-PATH Path to the configuration in the configuration manager]: :($configs_paths)" \
|
||||||
{-j,--json}"[Dump the configuration in JSON format]" \
|
{-j,--json}"[Dump the configuration in JSON format]" \
|
||||||
{-h,--help}"[Show help screen]" \
|
{-h,--help}"[This help screen]" \
|
||||||
{-c,--config}"[CONFIG-NAME Alternative to --path, where configuration profile name is used instead]: :($configs_names)" \
|
{-c,--config}"[CONFIG-NAME Alternative to --path, where configuration profile name is used instead]: :($configs_names)" \
|
||||||
"--config-path[OBJ-PATH Alias for --path]: :($configs_paths)"
|
"--config-path[OBJ-PATH Alias for --path]: :($configs_paths)"
|
||||||
}
|
}
|
||||||
|
|
||||||
_openvpn3_configs-list() {
|
_openvpn3_configs-list() {
|
||||||
_arguments \
|
_arguments \
|
||||||
{-h,--help}"[Show help screen]"
|
{-h,--help}"[This help screen]"
|
||||||
}
|
}
|
||||||
|
|
||||||
_openvpn3_help() {
|
_openvpn3_help() {
|
||||||
_arguments \
|
_arguments \
|
||||||
{-h,--help}"[Show help screen]"
|
{-h,--help}"[This help screen]"
|
||||||
}
|
}
|
||||||
|
|
||||||
_openvpn3_log() {
|
_openvpn3_log() {
|
||||||
_arguments \
|
_arguments \
|
||||||
{-h,--help}"[Show help screen]" \
|
{-h,--help}"[This help screen]" \
|
||||||
{-c,--config}"[CONFIG-NAME Alternative to --session-path, where configuration profile name is used instead]: :($sessions_configs_names $configs_names)" \
|
{-c,--config}"[CONFIG-NAME Alternative to --session-path, where configuration profile name is used instead]: :($sessions_configs_names $configs_names)" \
|
||||||
{-I,--interface}"[INTERFACE Alternative to --session-path, where tun interface name is used instead]: :($sessions_interfaces)" \
|
{-I,--interface}"[INTERFACE Alternative to --session-path, where tun interface name is used instead]: :($sessions_interfaces)" \
|
||||||
"--session-path[SESSION-PATH Receive log events for a specific session]: :($sessions_paths)" \
|
"--session-path[SESSION-PATH Receive log events for a specific session]: :($sessions_paths)" \
|
||||||
|
|
@ -142,7 +142,7 @@ _openvpn3_session-acl() {
|
||||||
_arguments \
|
_arguments \
|
||||||
{-s,--show}"[Show the current access control lists]" \
|
{-s,--show}"[Show the current access control lists]" \
|
||||||
{-o,--path}"[SESSION-PATH Path to the session in the session manager]: :($sessions_paths)" \
|
{-o,--path}"[SESSION-PATH Path to the session in the session manager]: :($sessions_paths)" \
|
||||||
{-h,--help}"[Show help screen]" \
|
{-h,--help}"[This help screen]" \
|
||||||
{-c,--config}"[CONFIG-NAME Alternative to --path, where configuration profile name is used instead]: :($sessions_configs_names)" \
|
{-c,--config}"[CONFIG-NAME Alternative to --path, where configuration profile name is used instead]: :($sessions_configs_names)" \
|
||||||
{-R,--revoke}"[<UID | username> Revoke this user access from this session]" \
|
{-R,--revoke}"[<UID | username> Revoke this user access from this session]" \
|
||||||
{-I,--interface}"[INTERFACE Alternative to --path, where tun interface name is used instead]: :($sessions_interfaces)" \
|
{-I,--interface}"[INTERFACE Alternative to --path, where tun interface name is used instead]: :($sessions_interfaces)" \
|
||||||
|
|
@ -155,7 +155,7 @@ _openvpn3_session-acl() {
|
||||||
_openvpn3_session-manage() {
|
_openvpn3_session-manage() {
|
||||||
_arguments \
|
_arguments \
|
||||||
{-o,--path}"[SESSION-PATH Path to the session in the session manager]: :($sessions_paths)" \
|
{-o,--path}"[SESSION-PATH Path to the session in the session manager]: :($sessions_paths)" \
|
||||||
{-h,--help}"[Show help screen]" \
|
{-h,--help}"[This help screen]" \
|
||||||
{-c,--config}"[CONFIG-NAME Alternative to --path, where configuration profile name is used instead]: :($sessions_configs_names)" \
|
{-c,--config}"[CONFIG-NAME Alternative to --path, where configuration profile name is used instead]: :($sessions_configs_names)" \
|
||||||
{-R,--resume}"[Resumes a paused VPN session]" \
|
{-R,--resume}"[Resumes a paused VPN session]" \
|
||||||
{-P,--pause}"[Pauses the VPN session]" \
|
{-P,--pause}"[Pauses the VPN session]" \
|
||||||
|
|
@ -169,7 +169,7 @@ _openvpn3_session-manage() {
|
||||||
_openvpn3_session-start() {
|
_openvpn3_session-start() {
|
||||||
_arguments \
|
_arguments \
|
||||||
{-p,--config-path}"[CONFIG-PATH Configuration path to an already imported configuration]: :($configs_paths)" \
|
{-p,--config-path}"[CONFIG-PATH Configuration path to an already imported configuration]: :($configs_paths)" \
|
||||||
{-h,--help}"[Show help screen]" \
|
{-h,--help}"[This help screen]" \
|
||||||
{-c,--config}"[CONFIG-FILE Configuration file to start directly]: :_files" \
|
{-c,--config}"[CONFIG-FILE Configuration file to start directly]: :_files" \
|
||||||
"--persist-tun[Enforces persistent tun/seamless tunnel (requires --config)]"
|
"--persist-tun[Enforces persistent tun/seamless tunnel (requires --config)]"
|
||||||
}
|
}
|
||||||
|
|
@ -178,7 +178,7 @@ _openvpn3_session-stats() {
|
||||||
_arguments \
|
_arguments \
|
||||||
{-o,--path}"[SESSION-PATH Path to the configuration in the configuration manager]: :($sessions_paths)" \
|
{-o,--path}"[SESSION-PATH Path to the configuration in the configuration manager]: :($sessions_paths)" \
|
||||||
{-j,--json}"[Dump the configuration in JSON format]" \
|
{-j,--json}"[Dump the configuration in JSON format]" \
|
||||||
{-h,--help}"[Show help screen]" \
|
{-h,--help}"[This help screen]" \
|
||||||
{-c,--config}"[CONFIG-NAME Alternative to --path, where configuration profile name is used instead]: :($sessions_configs_names)" \
|
{-c,--config}"[CONFIG-NAME Alternative to --path, where configuration profile name is used instead]: :($sessions_configs_names)" \
|
||||||
{-I,--interface}"[INTERFACE Alternative to --path, where tun interface name is used instead]: :($sessions_interfaces)" \
|
{-I,--interface}"[INTERFACE Alternative to --path, where tun interface name is used instead]: :($sessions_interfaces)" \
|
||||||
"--session-path[SESSION-PATH Alias for --path]: :($sessions_paths)"
|
"--session-path[SESSION-PATH Alias for --path]: :($sessions_paths)"
|
||||||
|
|
@ -186,12 +186,12 @@ _openvpn3_session-stats() {
|
||||||
|
|
||||||
_openvpn3_sessions-list() {
|
_openvpn3_sessions-list() {
|
||||||
_arguments \
|
_arguments \
|
||||||
{-h,--help}"[Show help screen]"
|
{-h,--help}"[This help screen]"
|
||||||
}
|
}
|
||||||
|
|
||||||
_openvpn3_shell-completion() {
|
_openvpn3_shell-completion() {
|
||||||
_arguments \
|
_arguments \
|
||||||
{-h,--help}"[Show help screen]" \
|
{-h,--help}"[This help screen]" \
|
||||||
"--list-commands[List all available commands]" \
|
"--list-commands[List all available commands]" \
|
||||||
"--list-options[COMMAND List all available options for a specific command]: :($(openvpn3 shell-completion --list-commands))" \
|
"--list-options[COMMAND List all available options for a specific command]: :($(openvpn3 shell-completion --list-commands))" \
|
||||||
"--arg-helper[OPTION Used together with --list-options, lists value hint to an option]"
|
"--arg-helper[OPTION Used together with --list-options, lists value hint to an option]"
|
||||||
|
|
@ -199,7 +199,7 @@ _openvpn3_shell-completion() {
|
||||||
|
|
||||||
_openvpn3_version() {
|
_openvpn3_version() {
|
||||||
_arguments \
|
_arguments \
|
||||||
{-h,--help}"[Show help screen]"
|
{-h,--help}"[This help screen]"
|
||||||
}
|
}
|
||||||
|
|
||||||
_openvpn3_command() {
|
_openvpn3_command() {
|
||||||
|
|
@ -210,7 +210,7 @@ _openvpn3_command() {
|
||||||
"config-remove: Remove an available configuration profile"
|
"config-remove: Remove an available configuration profile"
|
||||||
"config-show: Show/dump a configuration profile"
|
"config-show: Show/dump a configuration profile"
|
||||||
"configs-list: List all available configuration profiles"
|
"configs-list: List all available configuration profiles"
|
||||||
"help: Show help screen"
|
"help: This help screen"
|
||||||
"log: Receive log events as they occur"
|
"log: Receive log events as they occur"
|
||||||
"session-acl: Manage access control lists for sessions"
|
"session-acl: Manage access control lists for sessions"
|
||||||
"session-manage: Manage VPN sessions"
|
"session-manage: Manage VPN sessions"
|
||||||
|
|
@ -239,7 +239,7 @@ _openvpn3_command() {
|
||||||
}
|
}
|
||||||
|
|
||||||
_arguments \
|
_arguments \
|
||||||
{-h,--help}"[Show help screen]" \
|
{-h,--help}"[that This help screen]" \
|
||||||
"*::openvpn3 commands:_openvpn3_command" \
|
"*::openvpn3 commands:_openvpn3_command" \
|
||||||
|
|
||||||
# Local Variables:
|
# Local Variables:
|
||||||
|
|
|
||||||
30
src/_pm2
30
src/_pm2
|
|
@ -73,7 +73,7 @@ _pm2() {
|
||||||
'--no-color[skip colors]' \
|
'--no-color[skip colors]' \
|
||||||
'--no-vizion[start an app without vizion feature]' \
|
'--no-vizion[start an app without vizion feature]' \
|
||||||
'--np-autorestart[start an app without automatic restart]' \
|
'--np-autorestart[start an app without automatic restart]' \
|
||||||
'--no-treekill[only kill the main process, not detached children]' \
|
'--no-treekill[Only kill the main process, not detached children]' \
|
||||||
'--no-pmx[start an app without pmx]' \
|
'--no-pmx[start an app without pmx]' \
|
||||||
'--no-automation[start an app without automation]' \
|
'--no-automation[start an app without automation]' \
|
||||||
'(--disable-trace --trace)--trace[enable transaction tracing with km]' \
|
'(--disable-trace --trace)--trace[enable transaction tracing with km]' \
|
||||||
|
|
@ -93,9 +93,9 @@ _pm2() {
|
||||||
(start)
|
(start)
|
||||||
_arguments \
|
_arguments \
|
||||||
'--watch[watch folder for changes]' \
|
'--watch[watch folder for changes]' \
|
||||||
'--fresh[rebuild Dockerfile]' \
|
'--fresh[Rebuild Dockerfile]' \
|
||||||
'--daemon[run container in daemon mode(debug purposes)]' \
|
'--daemon[Run container in Daemon mode(debug purposes)]' \
|
||||||
'--container[start application in container mode]' \
|
'--container[Start application in container mode]' \
|
||||||
'--dist[--with-container; change local Dockerfile to containerize all files in current directory]' \
|
'--dist[--with-container; change local Dockerfile to containerize all files in current directory]' \
|
||||||
'--image-name[with --dist; set the exported image name]:name' \
|
'--image-name[with --dist; set the exported image name]:name' \
|
||||||
'--node-version[with --container, set a specific major Node.js version]:version' \
|
'--node-version[with --container, set a specific major Node.js version]:version' \
|
||||||
|
|
@ -119,7 +119,7 @@ _pm2() {
|
||||||
(stop|restart)
|
(stop|restart)
|
||||||
_arguments \
|
_arguments \
|
||||||
'(- *)'{-h,--help}'[output usage information]' \
|
'(- *)'{-h,--help}'[output usage information]' \
|
||||||
'--watch[stop watching folder for changes]' \
|
'--watch[Stop watching folder for changes]' \
|
||||||
'*: :_pm2_id_namespace_all' \
|
'*: :_pm2_id_namespace_all' \
|
||||||
&& ret=0
|
&& ret=0
|
||||||
;;
|
;;
|
||||||
|
|
@ -231,8 +231,8 @@ _pm2_subcommands() {
|
||||||
"stop:stop a process"
|
"stop:stop a process"
|
||||||
"restart:restart a process"
|
"restart:restart a process"
|
||||||
"scale:scale up/down a process in cluster mode depending on total_number param"
|
"scale:scale up/down a process in cluster mode depending on total_number param"
|
||||||
"profile\:mem:sample PM2 heap memory"
|
"profile\:mem:Sample PM2 heap memory"
|
||||||
"profile\:cpu:profile PM2 cpu"
|
"profile\:cpu:Profile PM2 cpu"
|
||||||
"reload:reload processes (note that its for app using HTTP/HTTPS)"
|
"reload:reload processes (note that its for app using HTTP/HTTPS)"
|
||||||
"id:get process id by name"
|
"id:get process id by name"
|
||||||
"inspect:inspect a process"
|
"inspect:inspect a process"
|
||||||
|
|
@ -244,12 +244,12 @@ _pm2_subcommands() {
|
||||||
"install:install or update a module and run it forever"
|
"install:install or update a module and run it forever"
|
||||||
"module\:install:install or update a module and run it forever"
|
"module\:install:install or update a module and run it forever"
|
||||||
"module\:update:update a module and run it forever"
|
"module\:update:update a module and run it forever"
|
||||||
"module\:generate:generate a sample module in current folder"
|
"module\:generate:Generate a sample module in current folder"
|
||||||
"uninstall:stop and uninstall a module"
|
"uninstall:stop and uninstall a module"
|
||||||
"module\:uninstall:stop and uninstall a module"
|
"module\:uninstall:stop and uninstall a module"
|
||||||
"package:check & package TAR type module"
|
"package:Check & Package TAR type module"
|
||||||
"publish:publish the module you are currently on"
|
"publish:Publish the module you are currently on"
|
||||||
"module\:publish:publish the module you are currently on"
|
"module\:publish:Publish the module you are currently on"
|
||||||
"set:sets the specified config <key> <value>"
|
"set:sets the specified config <key> <value>"
|
||||||
"multiset:multiset eg \"key1 val1 key2 val2\""
|
"multiset:multiset eg \"key1 val1 key2 val2\""
|
||||||
"get:get value for <key>"
|
"get:get value for <key>"
|
||||||
|
|
@ -263,11 +263,11 @@ _pm2_subcommands() {
|
||||||
"unmonitor:unmonitor target process"
|
"unmonitor:unmonitor target process"
|
||||||
"open:open the pm2 monitoring dashboard"
|
"open:open the pm2 monitoring dashboard"
|
||||||
"plus:enable pm2 plus"
|
"plus:enable pm2 plus"
|
||||||
"login:login to pm2 plus"
|
"login:Login to pm2 plus"
|
||||||
"logout:logout from pm2 plus"
|
"logout:Logout from pm2 plus"
|
||||||
"dump:dump all processes for resurrecting them later"
|
"dump:dump all processes for resurrecting them later"
|
||||||
"save:dump all processes for resurrecting them later"
|
"save:dump all processes for resurrecting them later"
|
||||||
"cleardump:create empty dump file"
|
"cleardump:Create empty dump file"
|
||||||
"send:send stdin to <pm_id>"
|
"send:send stdin to <pm_id>"
|
||||||
"attach:attach stdin/stdout to application identified by <pm_id>"
|
"attach:attach stdin/stdout to application identified by <pm_id>"
|
||||||
"resurrect:resurrect previously dumped processes"
|
"resurrect:resurrect previously dumped processes"
|
||||||
|
|
@ -297,7 +297,7 @@ _pm2_subcommands() {
|
||||||
"dash:launch dashboard with monitoring and logs"
|
"dash:launch dashboard with monitoring and logs"
|
||||||
"flush:flush logs"
|
"flush:flush logs"
|
||||||
"reloadLogs:reload all logs"
|
"reloadLogs:reload all logs"
|
||||||
"logs:stream logs file (default is to stream all logs)"
|
"logs:stream logs file. Default stream all logs"
|
||||||
"kill:kill daemon"
|
"kill:kill daemon"
|
||||||
"pull:updates repository for a given app"
|
"pull:updates repository for a given app"
|
||||||
"forward:updates repository to the next commit for a given app"
|
"forward:updates repository to the next commit for a given app"
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ _pre_commit() {
|
||||||
case "$state" in
|
case "$state" in
|
||||||
(args)
|
(args)
|
||||||
local -a options=(
|
local -a options=(
|
||||||
'(- : *)'{-h,--help}'[show help message and exit]'
|
'(- : *)'{-h,--help}'[show this help message and exit]'
|
||||||
"--color[Whether to use color in output(default: auto)]:color:(auto always never)"
|
"--color[Whether to use color in output(default: auto)]:color:(auto always never)"
|
||||||
)
|
)
|
||||||
local -a hook_types=(
|
local -a hook_types=(
|
||||||
|
|
|
||||||
16
src/_rails
16
src/_rails
|
|
@ -45,7 +45,7 @@ _rails() {
|
||||||
|
|
||||||
local -a runtime_options rails_options
|
local -a runtime_options rails_options
|
||||||
runtime_options=(
|
runtime_options=(
|
||||||
'(- *)'{-h,--help}'[Show help message and quit]'
|
'(- *)'{-h,--help}'[Show this help message and quit]'
|
||||||
'(- *)'{-v,--version}'[Show Rails version and quit]'
|
'(- *)'{-v,--version}'[Show Rails version and quit]'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
@ -74,14 +74,14 @@ _rails() {
|
||||||
;;
|
;;
|
||||||
(console|c)
|
(console|c)
|
||||||
_arguments \
|
_arguments \
|
||||||
'(- *)'{-h,--help}'[Show help message and quit]' \
|
'(- *)'{-h,--help}'[Show this help message and quit]' \
|
||||||
'(-e --environment)'{-e,--environment=}'[The environment to run "console" in]:env:(test development production)' \
|
'(-e --environment)'{-e,--environment=}'[The environment to run "console" in]:env:(test development production)' \
|
||||||
'(-s --sandbox)'{-s,--sandbox}'[Rollback database modifications on exit]' \
|
'(-s --sandbox)'{-s,--sandbox}'[Rollback database modifications on exit]' \
|
||||||
&& ret=0
|
&& ret=0
|
||||||
;;
|
;;
|
||||||
(server|s)
|
(server|s)
|
||||||
_arguments \
|
_arguments \
|
||||||
'(- *)'{-h,--help}'[Show help message and quit]' \
|
'(- *)'{-h,--help}'[Show this help message and quit]' \
|
||||||
'(-e --environment)'{-e,--environment=}'[The environment to run "server" in]:env:(test development production)' \
|
'(-e --environment)'{-e,--environment=}'[The environment to run "server" in]:env:(test development production)' \
|
||||||
'(-p --port)'{-p,--port}'[Run Rails on the specified port]:port' \
|
'(-p --port)'{-p,--port}'[Run Rails on the specified port]:port' \
|
||||||
'(-b --binding)'{-b,--binding=}'[Bind Rails to the specified IP]:binding' \
|
'(-b --binding)'{-b,--binding=}'[Bind Rails to the specified IP]:binding' \
|
||||||
|
|
@ -98,7 +98,7 @@ _rails() {
|
||||||
;;
|
;;
|
||||||
(dbconsole|db)
|
(dbconsole|db)
|
||||||
_arguments \
|
_arguments \
|
||||||
'(- *)'{-h,--help}'[Show help message and quit]' \
|
'(- *)'{-h,--help}'[Show this help message and quit]' \
|
||||||
'(-e --environment)'{-e,--environment=}'[The environment to run "server" in]:env:(test development production)' \
|
'(-e --environment)'{-e,--environment=}'[The environment to run "server" in]:env:(test development production)' \
|
||||||
'(-p --include-password)'{-p,--include-password}'[Automatically provide the password from database.yml]' \
|
'(-p --include-password)'{-p,--include-password}'[Automatically provide the password from database.yml]' \
|
||||||
'--mode=[Automatically put the sqlite3 database in the specified mode]:mode:(html list line column)' \
|
'--mode=[Automatically put the sqlite3 database in the specified mode]:mode:(html list line column)' \
|
||||||
|
|
@ -109,7 +109,7 @@ _rails() {
|
||||||
;;
|
;;
|
||||||
(test|t|test:system)
|
(test|t|test:system)
|
||||||
_arguments \
|
_arguments \
|
||||||
'(- *)'{-h,--help}'[Show help message and quit]' \
|
'(- *)'{-h,--help}'[Show this help message and quit]' \
|
||||||
'--no-plugins[Bypass minitest plugin auto-loading]' \
|
'--no-plugins[Bypass minitest plugin auto-loading]' \
|
||||||
'(-s --seed)'{-s,--seed=}'[Sets random seed]:seed' \
|
'(-s --seed)'{-s,--seed=}'[Sets random seed]:seed' \
|
||||||
'(-v --verbose -q --quiet)'{-v,--verbose}'[Show progress processing files]' \
|
'(-v --verbose -q --quiet)'{-v,--verbose}'[Show progress processing files]' \
|
||||||
|
|
@ -133,7 +133,7 @@ _rails() {
|
||||||
;;
|
;;
|
||||||
(runner|r)
|
(runner|r)
|
||||||
_arguments \
|
_arguments \
|
||||||
'(- *)'{-h,--help}'[Show help message and quit]' \
|
'(- *)'{-h,--help}'[Show this help message and quit]' \
|
||||||
'(-e --environment)'{-e,--environment=}'[The environment to run "runner"]:env:(test development production)' \
|
'(-e --environment)'{-e,--environment=}'[The environment to run "runner"]:env:(test development production)' \
|
||||||
'(-w --skip-executor)'{-w,--skip-executor}'[Do not wrap with Rails Executor]' \
|
'(-w --skip-executor)'{-w,--skip-executor}'[Do not wrap with Rails Executor]' \
|
||||||
'*:: :_files -g "*.rb"' \
|
'*:: :_files -g "*.rb"' \
|
||||||
|
|
@ -147,7 +147,7 @@ _rails() {
|
||||||
;;
|
;;
|
||||||
(routes)
|
(routes)
|
||||||
_arguments \
|
_arguments \
|
||||||
'(- *)'{-h,--help}'[Show help message and quit]' \
|
'(- *)'{-h,--help}'[Show this help message and quit]' \
|
||||||
'(-c --controller)'{-c,--controller=}'[Filter by a specific controller]:controller' \
|
'(-c --controller)'{-c,--controller=}'[Filter by a specific controller]:controller' \
|
||||||
'(-g --grep)'{-g,--grep}'[Grep routes by a specific pattern]' \
|
'(-g --grep)'{-g,--grep}'[Grep routes by a specific pattern]' \
|
||||||
'(-E --expanded)'{-E,--expanded}'[Print routes expanded vertically with parts explained]' \
|
'(-E --expanded)'{-E,--expanded}'[Print routes expanded vertically with parts explained]' \
|
||||||
|
|
@ -353,7 +353,7 @@ _rails_generate() {
|
||||||
(generate)
|
(generate)
|
||||||
local -a opts
|
local -a opts
|
||||||
opts=(
|
opts=(
|
||||||
'(- *)'{-h,--help}'[Show help message and quit]'
|
'(- *)'{-h,--help}'[Show this help message and quit]'
|
||||||
$runtime_options
|
$runtime_options
|
||||||
'--skip-namespace[Skip namespace]'
|
'--skip-namespace[Skip namespace]'
|
||||||
'--skip-collision-check[Skip collision check]'
|
'--skip-collision-check[Skip collision check]'
|
||||||
|
|
|
||||||
2
src/_rev
2
src/_rev
|
|
@ -35,7 +35,7 @@
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
_arguments \
|
_arguments \
|
||||||
'(- *)'{-h,--help}'[display help]' \
|
'(- *)'{-h,--help}'[display this help]' \
|
||||||
'(- *)'{-V,--version}'[display version]' \
|
'(- *)'{-V,--version}'[display version]' \
|
||||||
'(-0 --zero)'{-0,--zero}'[use the nul character as line separator]'
|
'(-0 --zero)'{-0,--zero}'[use the nul character as line separator]'
|
||||||
|
|
||||||
|
|
|
||||||
2
src/_sbt
2
src/_sbt
|
|
@ -93,7 +93,7 @@ _sbt() {
|
||||||
unfiltered/unfiltered.g8
|
unfiltered/unfiltered.g8
|
||||||
scalatra/scalatra-sbt.g8
|
scalatra/scalatra-sbt.g8
|
||||||
)
|
)
|
||||||
_values 'g8_templates' $g8_templates && ret=0
|
_values 'g8_templates' $g8_templates
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
|
|
|
||||||
|
|
@ -173,7 +173,7 @@ __tmuxp_import() {
|
||||||
(project)
|
(project)
|
||||||
if [[ $line[1] == 'tmuxinator' ]]
|
if [[ $line[1] == 'tmuxinator' ]]
|
||||||
then
|
then
|
||||||
_wanted tmuxinator-projects expl 'tmuxinator projects' compadd $(tmuxinator completions start)
|
_wanted tmuxinator-projects exp 'tmuxinator projects' compadd $(tmuxinator completions start)
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
|
||||||
2
src/_tsc
2
src/_tsc
|
|
@ -194,7 +194,7 @@ local -a opts=(
|
||||||
"--excludeFiles[Remove a list of files from the watch mode's processing]:files:_files"
|
"--excludeFiles[Remove a list of files from the watch mode's processing]:files:_files"
|
||||||
"--libReplacement[Enable library replacement]"
|
"--libReplacement[Enable library replacement]"
|
||||||
"--erasableSyntaxOnly[Ensures that runtime constructs which are not part of ECMAScript are not allowed]"
|
"--erasableSyntaxOnly[Ensures that runtime constructs which are not part of ECMAScript are not allowed]"
|
||||||
'*:: :_files'
|
'*:: :_files' \
|
||||||
)
|
)
|
||||||
|
|
||||||
if (( $+opt_args[--build] )); then
|
if (( $+opt_args[--build] )); then
|
||||||
|
|
|
||||||
|
|
@ -61,7 +61,7 @@ case $OSTYPE in
|
||||||
;;
|
;;
|
||||||
(*)
|
(*)
|
||||||
_arguments \
|
_arguments \
|
||||||
'(- *)'{-h,--help}'[display help]' \
|
'(- *)'{-h,--help}'[display this help]' \
|
||||||
'(- *)'{-V,--version}'[display version]' \
|
'(- *)'{-V,--version}'[display version]' \
|
||||||
'(-r --random)'{-r,--random}'[generate random-based uuid]' \
|
'(-r --random)'{-r,--random}'[generate random-based uuid]' \
|
||||||
'(-t --time)'{-t,--time}'[generate time-based uuid]' \
|
'(-t --time)'{-t,--time}'[generate time-based uuid]' \
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,7 @@
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
_arguments \
|
_arguments \
|
||||||
'(- *)'{-h,--help}'[display help]' \
|
'(- *)'{-h,--help}'[display this help]' \
|
||||||
'(-g --group -p --passwd)'{-g,--group}'[edit group database]' \
|
'(-g --group -p --passwd)'{-g,--group}'[edit group database]' \
|
||||||
'(-g --group -p --passwd)'{-p,--passwd}'[edit passwd database]' \
|
'(-g --group -p --passwd)'{-p,--passwd}'[edit passwd database]' \
|
||||||
'(-q --quiet)'{-q,--quiet}'[quiet mode]' \
|
'(-q --quiet)'{-q,--quiet}'[quiet mode]' \
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,7 @@ _wdctl_output_columns() {
|
||||||
}
|
}
|
||||||
|
|
||||||
_arguments -s \
|
_arguments -s \
|
||||||
'(- *)'{-h,--help}'[display help]' \
|
'(- *)'{-h,--help}'[display this help]' \
|
||||||
'(- *)'{-V,--version}'[display version]' \
|
'(- *)'{-V,--version}'[display version]' \
|
||||||
'(-f --flags)'{-f,--flags}'[print selected flags only]:flags' \
|
'(-f --flags)'{-f,--flags}'[print selected flags only]:flags' \
|
||||||
'(-F --noflags)'{-F,--noflags}'[do not print information about flags]' \
|
'(-F --noflags)'{-F,--noflags}'[do not print information about flags]' \
|
||||||
|
|
|
||||||
12
src/_yarn
12
src/_yarn
|
|
@ -345,8 +345,7 @@ _yarn_cache() {
|
||||||
_arguments \
|
_arguments \
|
||||||
'(- *)'{-h,--help}'[show help message and exit]' \
|
'(- *)'{-h,--help}'[show help message and exit]' \
|
||||||
'--mirror[remove the global cache files instead of the local cache files]' \
|
'--mirror[remove the global cache files instead of the local cache files]' \
|
||||||
'--all[remove both the global cache files and the local cache files of the current project]' \
|
'--all[remove both the global cache files and the local cache files of the current project]'
|
||||||
&& ret=0
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
|
|
@ -641,6 +640,8 @@ _yarn_plugin_subcommands() {
|
||||||
|
|
||||||
(( $+functions[_yarn_run] )) ||
|
(( $+functions[_yarn_run] )) ||
|
||||||
_yarn_run() {
|
_yarn_run() {
|
||||||
|
local ret=1
|
||||||
|
|
||||||
_arguments \
|
_arguments \
|
||||||
'(- *)'{-h,--help}'[show help message and exit]' \
|
'(- *)'{-h,--help}'[show help message and exit]' \
|
||||||
'--json[format the output as an NDJSON stream]' \
|
'--json[format the output as an NDJSON stream]' \
|
||||||
|
|
@ -650,7 +651,10 @@ _yarn_run() {
|
||||||
'(-B --binaries-only)'{-B,--binaries-only}'[ignore any user defined scripts and only check binaries]' \
|
'(-B --binaries-only)'{-B,--binaries-only}'[ignore any user defined scripts and only check binaries]' \
|
||||||
'*--require[preload given module]:module' \
|
'*--require[preload given module]:module' \
|
||||||
'1: :_yarn_scripts' \
|
'1: :_yarn_scripts' \
|
||||||
'*:: :_files'
|
'*:: :_files' \
|
||||||
|
&& ret=0
|
||||||
|
|
||||||
|
return ret
|
||||||
}
|
}
|
||||||
|
|
||||||
(( $+functions[_yarn_set] )) ||
|
(( $+functions[_yarn_set] )) ||
|
||||||
|
|
@ -904,7 +908,7 @@ _yarn_scripts() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
local -a candidates=($scripts $binaries)
|
local -a candidates=($scripts $binaries)
|
||||||
_wanted candidates expl 'scripts' compadd -a candidates
|
compadd -a candidates
|
||||||
}
|
}
|
||||||
|
|
||||||
_yarn "$@"
|
_yarn "$@"
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,7 @@ _zramctl_output_columns() {
|
||||||
}
|
}
|
||||||
|
|
||||||
_arguments \
|
_arguments \
|
||||||
'(- *)'{-h,--help}'[display help]' \
|
'(- *)'{-h,--help}'[display this help]' \
|
||||||
'(- *)'{-V,--version}'[display version]' \
|
'(- *)'{-V,--version}'[display version]' \
|
||||||
'(-a --algorithm)'{-a,--algorithm}'[compression algorithm to use]:algorithm:(lzo lz4 lz4hc deflate 842 zstd)' \
|
'(-a --algorithm)'{-a,--algorithm}'[compression algorithm to use]:algorithm:(lzo lz4 lz4hc deflate 842 zstd)' \
|
||||||
'(-b --bytes)'{-b,--bytes}'[print sizes in bytes rather than in human readable format]:bytes' \
|
'(-b --bytes)'{-b,--bytes}'[print sizes in bytes rather than in human readable format]:bytes' \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue