Compare commits
1 Commits
a8f594acfd
...
76e31f1675
| Author | SHA1 | Date |
|---|---|---|
|
|
76e31f1675 |
80
src/_ab
80
src/_ab
|
|
@ -1,80 +0,0 @@
|
||||||
#compdef ab
|
|
||||||
# ------------------------------------------------------------------------------
|
|
||||||
# Copyright (c) 2026 Github zsh-users - https://github.com/zsh-users
|
|
||||||
#
|
|
||||||
# Permission is hereby granted, free of charge, to any person obtaining
|
|
||||||
# a copy of this software and associated documentation files (the
|
|
||||||
# "Software"), to deal in the Software without restriction, including
|
|
||||||
# without limitation the rights to use, copy, modify, merge, publish,
|
|
||||||
# distribute, sublicense, and/or sell copies of the Software, and to
|
|
||||||
# permit persons to whom the Software is furnished to do so, subject to
|
|
||||||
# the following conditions:
|
|
||||||
#
|
|
||||||
# The above copyright notice and this permission notice shall be included
|
|
||||||
# in all copies or substantial portions of the Software.
|
|
||||||
#
|
|
||||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
||||||
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
||||||
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
|
||||||
# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
|
||||||
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
||||||
# OTHER DEALINGS IN THE SOFTWARE.
|
|
||||||
# ------------------------------------------------------------------------------
|
|
||||||
# Description
|
|
||||||
# -----------
|
|
||||||
#
|
|
||||||
# Completion script for ab 2.4 (https://httpd.apache.org/docs/2.4/programs/ab.html)
|
|
||||||
#
|
|
||||||
# ------------------------------------------------------------------------------
|
|
||||||
# Authors
|
|
||||||
# -------
|
|
||||||
#
|
|
||||||
# * Shohei Yoshida (https://github.com/syohex) <syohex@gmail.com>
|
|
||||||
#
|
|
||||||
# ------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
_arguments \
|
|
||||||
'-A[Supply BASIC Authentication credential to the server]:auth' \
|
|
||||||
'-b[Size of TCP send/receive buffer in bytes]:bytes' \
|
|
||||||
'-B[Address to bind to when making outgoing connections]:address' \
|
|
||||||
'-c[Number of multiple requests to perform at a time(Default 1)]:num' \
|
|
||||||
'*-C[Add a cookie]:cookie' \
|
|
||||||
'-d[Do not display "percentage served within XX ms table"]' \
|
|
||||||
'-e[Write a CSV file which contains the time it took to serve that percentage of the requests]:file:_files' \
|
|
||||||
'-E[Specify client certificate in PEM format to authenticate with the server]:file:_files' \
|
|
||||||
'-f[Specify SSL/TLS protocol]:protocol:(SSL2 SSL3 TLS1 TLS1.1 TLS1.2 ALL)' \
|
|
||||||
'-g[Write all measured values out as a "gnuplot" or TSV file]:file:_files' \
|
|
||||||
'(- *)-h[Display usage information]' \
|
|
||||||
'*-H[Append extra headers to the request]:header' \
|
|
||||||
'-i[Do HEAD requests instead of GET]' \
|
|
||||||
'-k[Enable the HTTP KeepAlive feature]' \
|
|
||||||
'-l[Do not report errors if the length of the responses is not constant]' \
|
|
||||||
'-m[Custom HTTP method for the requests]:method:(DELETE GET HEAD POST PUT)' \
|
|
||||||
'-n[Number of requests to perform for the benchmarking session]:requests' \
|
|
||||||
'-p[File containing data to POST, remember to also set -T]:file:_files' \
|
|
||||||
'-P[Supply BASIC Authentication credentials to a proxy en-route]:auth' \
|
|
||||||
'-q[Suppress messages when processing more than 150 requests]' \
|
|
||||||
'-r[Do not exit on socket receive errors]' \
|
|
||||||
'-s[Maximum number of seconds to wait before the socket times out(Default 30seconds)]:seconds' \
|
|
||||||
'-S[Do not display the median and standard deviation values]' \
|
|
||||||
'-t[Maximum number of seconds to spend for benchmarking]:time' \
|
|
||||||
'-T[Content-Type header to use for POST/PUT data]:content_type' \
|
|
||||||
'-u[File containing data to PUT, remember to also set -T]:file:_files' \
|
|
||||||
'-v[Set verbosity level]:level:(1 2 3 4)' \
|
|
||||||
'(- *)-V[Display version number and exit]' \
|
|
||||||
'-w[Print out results in HTML tables]' \
|
|
||||||
'*-x[String to use as attributes for "table" tag]:attribute' \
|
|
||||||
'-X[use a proxy server for the requests]:proxy' \
|
|
||||||
'*-y[String to use as attributes for "tr" tag]:attribute' \
|
|
||||||
'*-z[String to use as attributes for "td" tag]:attribute' \
|
|
||||||
'-Z[Specify SSL/TLS cipher suite(See openssl ciphers)]:cipher' \
|
|
||||||
'*:: :_urls'
|
|
||||||
|
|
||||||
# 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
|
|
||||||
65
src/_fish
65
src/_fish
|
|
@ -1,65 +0,0 @@
|
||||||
#compdef fish
|
|
||||||
# ------------------------------------------------------------------------------
|
|
||||||
# Copyright (c) 2026 Github zsh-users - https://github.com/zsh-users
|
|
||||||
#
|
|
||||||
# Permission is hereby granted, free of charge, to any person obtaining
|
|
||||||
# a copy of this software and associated documentation files (the
|
|
||||||
# "Software"), to deal in the Software without restriction, including
|
|
||||||
# without limitation the rights to use, copy, modify, merge, publish,
|
|
||||||
# distribute, sublicense, and/or sell copies of the Software, and to
|
|
||||||
# permit persons to whom the Software is furnished to do so, subject to
|
|
||||||
# the following conditions:
|
|
||||||
#
|
|
||||||
# The above copyright notice and this permission notice shall be included
|
|
||||||
# in all copies or substantial portions of the Software.
|
|
||||||
#
|
|
||||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
||||||
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
||||||
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
|
||||||
# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
|
||||||
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
||||||
# OTHER DEALINGS IN THE SOFTWARE.
|
|
||||||
# ------------------------------------------------------------------------------
|
|
||||||
# Description
|
|
||||||
# -----------
|
|
||||||
#
|
|
||||||
# Completion script for fish 4.6.0 (https://fishshell.com/)
|
|
||||||
#
|
|
||||||
# ------------------------------------------------------------------------------
|
|
||||||
# Authors
|
|
||||||
# -------
|
|
||||||
#
|
|
||||||
# * Shohei Yoshida (https://github.com/syohex) <syohex@gmail.com>
|
|
||||||
#
|
|
||||||
# ------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
_fish_debug_categories() {
|
|
||||||
local -a categories=(${(f)"$(fish --print-debug-categories | awk '{n=$1;$1="";printf("%s[%s]\n",n,substr($0,2)) }')"})
|
|
||||||
_values -s ',' categories $categories
|
|
||||||
}
|
|
||||||
|
|
||||||
_arguments -s \
|
|
||||||
'(-c --command)'{-c,--command=}'[Evaluate the specified commands instead of reading from the commandline]:command' \
|
|
||||||
'(-C --init-command)'{-C,--init-command=}'[Evaluate specified commands after reading the configuration]:command' \
|
|
||||||
'(-d --debug)'{-d,--debug=}'[Enable debug output and specify a pattern for matching categories]:categories:_fish_debug_categories' \
|
|
||||||
'(-i --interactive)'{-i,--interactive}'[The shell is interactive]' \
|
|
||||||
'(-l --login)'{-l,--login}'[Act as if invoked as a login shell]' \
|
|
||||||
'(-N --no-config)'{-N,--no-config}'[Do not read configuration files]' \
|
|
||||||
'(-n --no-execute)'{-n,--no-execute}'[Do not execute any commands, only perform syntax checking]' \
|
|
||||||
'(-p --profile)'{-p,--profile=}'[Output timing information on all executed commands to the specified file]:file:_files' \
|
|
||||||
'--profile-startup=[Write timing for fish startup to specified file]:file:_files' \
|
|
||||||
'(-P --private)'{-P,--private}'[Enable private mode]' \
|
|
||||||
'--print-rusage-self[When fish exits, output stats from getrusage]' \
|
|
||||||
'(- *)--print-debug-categories[Print all debug categories, and then exit]' \
|
|
||||||
'(- *)'{-v,--version}'[Print version and exit]' \
|
|
||||||
'(-f --features)'{-f,--features}'[Enable one or more comma-separated feature flags]:features' \
|
|
||||||
'*:: :_files'
|
|
||||||
|
|
||||||
# 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
|
|
||||||
83
src/_h2load
83
src/_h2load
|
|
@ -1,83 +0,0 @@
|
||||||
#compdef h2load
|
|
||||||
# ------------------------------------------------------------------------------
|
|
||||||
# Copyright (c) 2026 Github zsh-users - https://github.com/zsh-users
|
|
||||||
#
|
|
||||||
# Permission is hereby granted, free of charge, to any person obtaining
|
|
||||||
# a copy of this software and associated documentation files (the
|
|
||||||
# "Software"), to deal in the Software without restriction, including
|
|
||||||
# without limitation the rights to use, copy, modify, merge, publish,
|
|
||||||
# distribute, sublicense, and/or sell copies of the Software, and to
|
|
||||||
# permit persons to whom the Software is furnished to do so, subject to
|
|
||||||
# the following conditions:
|
|
||||||
#
|
|
||||||
# The above copyright notice and this permission notice shall be included
|
|
||||||
# in all copies or substantial portions of the Software.
|
|
||||||
#
|
|
||||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
||||||
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
||||||
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
|
||||||
# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
|
||||||
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
||||||
# OTHER DEALINGS IN THE SOFTWARE.
|
|
||||||
# ------------------------------------------------------------------------------
|
|
||||||
# Description
|
|
||||||
# -----------
|
|
||||||
#
|
|
||||||
# Completion script for h2load 1.64.0 (https://github.com/nghttp2/nghttp2)
|
|
||||||
#
|
|
||||||
# ------------------------------------------------------------------------------
|
|
||||||
# Authors
|
|
||||||
# -------
|
|
||||||
#
|
|
||||||
# * Shohei Yoshida (https://github.com/syohex) <syohex@gmail.com>
|
|
||||||
#
|
|
||||||
# ------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
_arguments \
|
|
||||||
'(-n --requests)'{-n,--requests=}'[Number of requests across all clients(Default 1)]:num' \
|
|
||||||
'(-c --clients)'{-c,--clients=}'[Number of concurrent clients(Default 1)]:num' \
|
|
||||||
'(-t --threads)'{-t,--threads=}'[Number of native threads(Default 1)]:num' \
|
|
||||||
'(-i --input-file)'{-i,--input-file=}'[Path of a file with multiple URIs are separated by EOLs]:file:_files' \
|
|
||||||
'(-m --max-concurrent-streams)'{-m,--max-concurrent-streams=}'[Max concurrent streams to issue per session(Default 1)]:num' \
|
|
||||||
'(-f --max-frame-size)'{-f,--max-frame-size=}'[Maximum frame size that the local endpoint is willing to receive(Default 16K)]:size' \
|
|
||||||
'(-w --window-bits)'{-w,--window-bits=}'[Set the stream level initial window size to (2**n)-1(Default 30)]:num' \
|
|
||||||
'(-W --connection-window-bits)'{-W,--connection-window-bits=}'[Set the connection level initial window size to (2**n)-1(Default 30)]:num' \
|
|
||||||
\*{-H,--header=}'[Add/Override a header to the requests]:header' \
|
|
||||||
'--ciphers=[Set allowed cipher list for TLSv1.2 or earlier]:cipher_list' \
|
|
||||||
'--tls13-ciphers=[Set allowed cipher list for TLSv1.3]:cipher_list' \
|
|
||||||
'(-p --no-tls-proto)'{-p,--no-tls-proto=}'[Specify ALPN identifier of the protocol to used when accessing without SSL/TLS(Default h2c)]:protoid' \
|
|
||||||
'(-d --data)'{-d,--data=}'[POST file to server]:file:_files' \
|
|
||||||
'(-r --rate)'{-r,--rate=}'[Specify the fixed rate at which connections are created]:num' \
|
|
||||||
'--rate-period=[Specify the time period between creating connections]:num' \
|
|
||||||
'(-D --duration)'{-D,--duration=}'[Specify the main duration for the measurements]:duration' \
|
|
||||||
'--warm-up-time[Specify the time period before starting the actual measurements]:duration' \
|
|
||||||
'(-T --connection-active-timeout)'{-T,--connection-active-timeout=}'[Specify the maximum time that h2load is willing to keep a connection open]:duration' \
|
|
||||||
'(-N --connection-inactivity-timeout)'{-N,--connection-inactivity-timeout=}'[Specify the amount of time that h2load willing to wait to see activity on a given connection]:duration' \
|
|
||||||
'(--timing-script-file --rps)--timing-script-file=[Path of a timing script file]:file:_files' \
|
|
||||||
'(-B --base-uri)'{-B,--base-uri=}'[Specify URI from which the scheme, host and port will be used for all requests]:uri:_urls' \
|
|
||||||
'--alpn-list=[Comma delimited list of ALPN protocol identifier sorted in the order of preference]:alpn_list' \
|
|
||||||
'--h1[Short hand for --alpn-list=http/1.1 --no-tls-proto=http/1.1]' \
|
|
||||||
'--header-table-size=[Specify decoder header table size(Default 4K)]:size' \
|
|
||||||
'--encoder-header-table-size=[Specify encoder header table size(Default 4K)]:size' \
|
|
||||||
'--log-file=[Path of a request information]:file:_files' \
|
|
||||||
'--qlog-file-base=[Enable qlog output and specify base file name for qlogs]:file:_files' \
|
|
||||||
'--connect-to=[Host and port to connect]:host_port' \
|
|
||||||
'(--timing-script-file --rps)--rps=[Specify request per second for each client]:num' \
|
|
||||||
'--groups=[Specify the supported groups]:groups' \
|
|
||||||
'--no-udp-gso[Disable UDP GSO]' \
|
|
||||||
'--max-udp-payload-size=[Specify the maximum outgoing UDP datagram payload size]:size' \
|
|
||||||
'--ktls[Enable ktls]' \
|
|
||||||
'--sni=[Send given DNS name in TLS SNI]:dns_name' \
|
|
||||||
'(-v --verbose)'{-v,--verbose}'[Output debug information]' \
|
|
||||||
'(- *)--version[Display version information and exit]' \
|
|
||||||
'(- *)'{-h,--help}'[Display help and exit]' \
|
|
||||||
'*:: :_urls'
|
|
||||||
|
|
||||||
# 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
|
|
||||||
85
src/_nu
85
src/_nu
|
|
@ -1,85 +0,0 @@
|
||||||
#compdef nu
|
|
||||||
# ------------------------------------------------------------------------------
|
|
||||||
# Copyright (c) 2026 Github zsh-users - https://github.com/zsh-users
|
|
||||||
#
|
|
||||||
# Permission is hereby granted, free of charge, to any person obtaining
|
|
||||||
# a copy of this software and associated documentation files (the
|
|
||||||
# "Software"), to deal in the Software without restriction, including
|
|
||||||
# without limitation the rights to use, copy, modify, merge, publish,
|
|
||||||
# distribute, sublicense, and/or sell copies of the Software, and to
|
|
||||||
# permit persons to whom the Software is furnished to do so, subject to
|
|
||||||
# the following conditions:
|
|
||||||
#
|
|
||||||
# The above copyright notice and this permission notice shall be included
|
|
||||||
# in all copies or substantial portions of the Software.
|
|
||||||
#
|
|
||||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
||||||
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
||||||
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
|
||||||
# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
|
||||||
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
||||||
# OTHER DEALINGS IN THE SOFTWARE.
|
|
||||||
# ------------------------------------------------------------------------------
|
|
||||||
# Description
|
|
||||||
# -----------
|
|
||||||
#
|
|
||||||
# Completion script for nu 0.111.0 (https://www.nushell.sh/)
|
|
||||||
#
|
|
||||||
# ------------------------------------------------------------------------------
|
|
||||||
# Authors
|
|
||||||
# -------
|
|
||||||
#
|
|
||||||
# * Shohei Yoshida (https://github.com/syohex) <syohex@gmail.com>
|
|
||||||
#
|
|
||||||
# ------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
local -a table_modes=(
|
|
||||||
ascii_rounded basic_compact basic compact_double compact default
|
|
||||||
dots double heavy light markdown none psql reinforced restructured
|
|
||||||
rounded single thin with_love
|
|
||||||
)
|
|
||||||
|
|
||||||
_arguments \
|
|
||||||
'(- *)'{-h,--help}'[show help message]' \
|
|
||||||
'(- *)'{-v,--version}'[print the version]' \
|
|
||||||
'(-i --interactive)'{-i,--interactive}'[start as an interactive shell]' \
|
|
||||||
'(-l --login)'{-l,--login}'[start as a login shell]' \
|
|
||||||
'(-c --commands)'{-c,--commands}'[run the given command and then exit]:command' \
|
|
||||||
'(-e --execute)'{-e,--execute}'[run the given commands and then enter an interactive shell]:command' \
|
|
||||||
'(-m --table-mode)'{-m,--table-mode}'[table mode to use]:mode:($table_modes)' \
|
|
||||||
'--error-style[error style to use]:style:(fancy plain)' \
|
|
||||||
'--no-newline[print the result for --commands(-c) without a newline]' \
|
|
||||||
'--stdin[redirect standard input to a command(with "-c") or a script file]' \
|
|
||||||
'--testbin[run internal test binary]:binary' \
|
|
||||||
"--mcp[start nu's model context protocol server]" \
|
|
||||||
'--mcp-transport[transport to use for MCP server]:transport:(stdin http)' \
|
|
||||||
'--mcp-port[port for MCP HTTP transport(default: 8080)]:port' \
|
|
||||||
'(-I --include-path)'{-I,--include-path}'[set the NU_LIB_DIRS for the given script]:dir:_files -/' \
|
|
||||||
'(-n --no-config-file)'{-n,--no-config-file}'[start with no config file and no env file]' \
|
|
||||||
'--no-history[disable reading and writing to command history]' \
|
|
||||||
'--no-std-lib[start with no standard library]' \
|
|
||||||
'--config[start with an alternate config file]:file:_files' \
|
|
||||||
'--env-config[start with an alternate environment config file]:file:_files' \
|
|
||||||
'--log-level[log level for diagnostic logs]:level:(error warn info debug trace)' \
|
|
||||||
'--log-target[set the target for the log to output]:target: _alternative "std\:std\:(stdout stderr)" "files\:file\:_files"' \
|
|
||||||
'--log-include[set the Rust module prefixes to include in the log output]:prefix' \
|
|
||||||
'--log-exclude[set the Rust module prefixes to exclude from the log output]:prefix' \
|
|
||||||
"--lsp[start nu's language server protocol]" \
|
|
||||||
'--ide-goto-def[go to the definition of the item at the given position]:pos' \
|
|
||||||
'--ide-hover[give information about the item at the given position]:pos' \
|
|
||||||
'--ide-complete[list completions for the item at the given position]:pos' \
|
|
||||||
'--ide-check[run a diagnostic check on the given source and limit number of errors returned to provided number]:num' \
|
|
||||||
'--ide-ast[generate the ast on the given source]' \
|
|
||||||
'--experimental-options[enable or disable experimental options]:options:(all)' \
|
|
||||||
'--plugin-config[start with an alternative plugin registry file]:file:_files' \
|
|
||||||
'--plugins[list of plugin executable files to load]:file:_files' \
|
|
||||||
'*:: :_files'
|
|
||||||
|
|
||||||
# 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
|
|
||||||
Loading…
Reference in New Issue