Skip to content

Commit

Permalink
Update cats_autocomplete with latest arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
en-milie committed Aug 7, 2023
1 parent ce207e8 commit b3e260a
Showing 1 changed file with 24 additions and 9 deletions.
33 changes: 24 additions & 9 deletions cats_autocomplete
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# =======================
#
# Bash completion support for the `cats` command,
# generated by [picocli](https://picocli.info/) version 4.7.3-SNAPSHOT.
# generated by [picocli](https://picocli.info/) version 4.7.4.
#
# Installation
# ------------
Expand Down Expand Up @@ -190,8 +190,8 @@ function _picocli_cats() {
local prev_word=${COMP_WORDS[COMP_CWORD-1]}

local commands="generate-completion help list replay run fuzz lint"
local flag_opts="-A --checkHeaders -F --checkFields -T --checkHttp -C --checkContract --includeContract -W --includeWhitespaces -E --includeEmojis -U --includeControlChars --createRefData -d --dryRun --ignoreResponseCodeUndocumentedCheck --iu --ignoreResponseBodyCheck --ib -k --skipReportingForIgnoredCodes --skipReportingForIgnored -b --blackbox --useExamples -D --debug --printExecutionStatistics --printDetailedExecutionStatistics --timestampReports -j --json -h --help -V --version"
local arg_opts="--maxRequestsPerMinute --connectionTimeout --writeTimeout --readTimeout -c --contract -s --server --sslKeystore --sslKeystorePwd --sslKeyPwd --basicAuth --basicauth --proxyHost --proxyPort --authRefreshScript --ars --authRefreshInterval --ari --urlParams --headers -H --queryParams --refData --functionalFuzzerFile --securityFuzzerFile -f --fuzzers -p --paths --skipPaths --skipFuzzers --httpMethods -i --ignoreResponseCodes --ic --ignoreResponseSize --is --ignoreResponseWords --iw --ignoreResponseLines --il --ignoreResponseRegex --ir --skipFields --skipHeaders --fieldsFuzzingStrategy --maxFieldsToRemove --edgeSpacesStrategy --sanitizationStrategy --largeStringsSize --selfReferenceDepth -L --contentType -l --log -g --skipLog --reportFormat -o --output --words -w --matchResponseCodes --mc --matchResponseSize --ms --matchResponseWords --mw --matchResponseLines --ml --matchResponseRegex --mr"
local flag_opts="-A --checkHeaders -F --checkFields -T --checkHttp -C --checkContract --includeContract --includeLinters -W --includeWhitespaces -E --includeEmojis -U --includeControlChars --createRefData -d --dryRun --ignoreResponseCodeUndocumentedCheck --iu --ignoreResponseBodyCheck --ib -k --skipReportingForIgnoredCodes --skipReportingForIgnored --sri --srs --skipReportingForSuccess --srw --skipReportingForWarning -b --blackbox --useExamples -D --debug --printExecutionStatistics --printDetailedExecutionStatistics --timestampReports -j --json --checkUpdate -h --help -V --version"
local arg_opts="--maxRequestsPerMinute --connectionTimeout --writeTimeout --readTimeout -c --contract -s --server --sslKeystore --sslKeystorePwd --sslKeyPwd --basicAuth --basicauth --proxyHost --proxyPort --authRefreshScript --ars --authRefreshInterval --ari --urlParams --headers -H --queryParams --refData --functionalFuzzerFile --securityFuzzerFile -f --fuzzers -p --paths --skipPaths --skipFuzzers --httpMethods -i --ignoreResponseCodes --ic --ignoreResponseSize --is --ignoreResponseWords --iw --ignoreResponseLines --il --ignoreResponseRegex --ir --skipFields --skipHeaders --fieldsFuzzingStrategy --maxFieldsToRemove --edgeSpacesStrategy --sanitizationStrategy --largeStringsSize --selfReferenceDepth -L --contentType -l --log -g --skipLog -O --onlyLog --reportFormat -o --output --words -w --matchResponseCodes --mc --matchResponseSize --ms --matchResponseWords --mw --matchResponseLines --ml --matchResponseRegex --mr"
local httpMethods_option_args=("POST" "PUT" "GET" "TRACE" "DELETE" "PATCH" "HEAD" "CONNECT" "COPY" "MOVE" "PROPPATCH" "PROPFIND" "MKCOL" "LOCK" "UNLOCK" "SEARCH" "BIND" "UNBIND" "REBIND" "MKREDIRECTREF" "UPDATEREDIRECTREF" "ORDERPATCH" "ACL" "REPORT") # --httpMethods values
local fieldsFuzzingStrategy_option_args=("POWERSET" "SIZE" "ONEBYONE") # --fieldsFuzzingStrategy values
local edgeSpacesStrategy_option_args=("VALIDATE_AND_TRIM" "TRIM_AND_VALIDATE") # --edgeSpacesStrategy values
Expand Down Expand Up @@ -350,6 +350,9 @@ function _picocli_cats() {
-g|--skipLog)
return
;;
-O|--onlyLog)
return
;;
--reportFormat)
local IFS=$'\n'
COMPREPLY=( $( compReplyArray "${reportFormat_option_args[@]}" ) )
Expand Down Expand Up @@ -517,8 +520,8 @@ function _picocli_cats_run() {
local prev_word=${COMP_WORDS[COMP_CWORD-1]}

local commands=""
local flag_opts="-D --debug --printExecutionStatistics --printDetailedExecutionStatistics --timestampReports -j --json --createRefData --ignoreResponseCodeUndocumentedCheck --iu --ignoreResponseBodyCheck --ib -k --skipReportingForIgnoredCodes --skipReportingForIgnored -b --blackbox -h --help -V --version"
local arg_opts="--maxRequestsPerMinute --connectionTimeout --writeTimeout --readTimeout -c --contract -s --server --sslKeystore --sslKeystorePwd --sslKeyPwd --basicAuth --basicauth --proxyHost --proxyPort --authRefreshScript --ars --authRefreshInterval --ari -l --log -g --skipLog --reportFormat -o --output --headers --queryParams -H --refData --contentType -i --ignoreResponseCodes --ic --ignoreResponseSize --is --ignoreResponseWords --iw --ignoreResponseLines --il --ignoreResponseRegex --ir --skipFields --skipHeaders"
local flag_opts="-D --debug --printExecutionStatistics --printDetailedExecutionStatistics --timestampReports -j --json --checkUpdate --createRefData --ignoreResponseCodeUndocumentedCheck --iu --ignoreResponseBodyCheck --ib -k --skipReportingForIgnoredCodes --skipReportingForIgnored --sri --srs --skipReportingForSuccess --srw --skipReportingForWarning -b --blackbox -h --help -V --version"
local arg_opts="--maxRequestsPerMinute --connectionTimeout --writeTimeout --readTimeout -c --contract -s --server --sslKeystore --sslKeystorePwd --sslKeyPwd --basicAuth --basicauth --proxyHost --proxyPort --authRefreshScript --ars --authRefreshInterval --ari -l --log -g --skipLog -O --onlyLog --reportFormat -o --output --headers --queryParams -H --refData --contentType -i --ignoreResponseCodes --ic --ignoreResponseSize --is --ignoreResponseWords --iw --ignoreResponseLines --il --ignoreResponseRegex --ir --skipFields --skipHeaders"
local reportFormat_option_args=("HTML_ONLY" "HTML_JS" "JUNIT") # --reportFormat values

type compopt &>/dev/null && compopt +o default
Expand Down Expand Up @@ -572,6 +575,9 @@ function _picocli_cats_run() {
-g|--skipLog)
return
;;
-O|--onlyLog)
return
;;
--reportFormat)
local IFS=$'\n'
COMPREPLY=( $( compReplyArray "${reportFormat_option_args[@]}" ) )
Expand Down Expand Up @@ -650,8 +656,8 @@ function _picocli_cats_fuzz() {
local prev_word=${COMP_WORDS[COMP_CWORD-1]}

local commands=""
local flag_opts="-D --debug --printExecutionStatistics --printDetailedExecutionStatistics --timestampReports -j --json --ignoreResponseCodeUndocumentedCheck --iu --ignoreResponseBodyCheck --ib -k --skipReportingForIgnoredCodes --skipReportingForIgnored -b --blackbox -h --help -V --version"
local arg_opts="--maxRequestsPerMinute --connectionTimeout --writeTimeout --readTimeout -c --contract -s --server --sslKeystore --sslKeystorePwd --sslKeyPwd --basicAuth --basicauth --proxyHost --proxyPort --authRefreshScript --ars --authRefreshInterval --ari -l --log -g --skipLog --reportFormat -o --output --matchResponseCodes --mc --matchResponseSize --ms --matchResponseWords --mw --matchResponseLines --ml --matchResponseRegex --mr -i --ignoreResponseCodes --ic --ignoreResponseSize --is --ignoreResponseWords --iw --ignoreResponseLines --il --ignoreResponseRegex --ir --skipFields --skipHeaders --words -w --headers -H --data -d --httpMethod -X --targetFields -t"
local flag_opts="-D --debug --printExecutionStatistics --printDetailedExecutionStatistics --timestampReports -j --json --checkUpdate --ignoreResponseCodeUndocumentedCheck --iu --ignoreResponseBodyCheck --ib -k --skipReportingForIgnoredCodes --skipReportingForIgnored --sri --srs --skipReportingForSuccess --srw --skipReportingForWarning -b --blackbox -h --help -V --version"
local arg_opts="--maxRequestsPerMinute --connectionTimeout --writeTimeout --readTimeout -c --contract -s --server --sslKeystore --sslKeystorePwd --sslKeyPwd --basicAuth --basicauth --proxyHost --proxyPort --authRefreshScript --ars --authRefreshInterval --ari -l --log -g --skipLog -O --onlyLog --reportFormat -o --output --matchResponseCodes --mc --matchResponseSize --ms --matchResponseWords --mw --matchResponseLines --ml --matchResponseRegex --mr -i --ignoreResponseCodes --ic --ignoreResponseSize --is --ignoreResponseWords --iw --ignoreResponseLines --il --ignoreResponseRegex --ir --skipFields --skipHeaders --words -w --headers -H --data -d --httpMethod -X --targetFields -t"
local reportFormat_option_args=("HTML_ONLY" "HTML_JS" "JUNIT") # --reportFormat values
local httpMethod_option_args=("POST" "PUT" "GET" "TRACE" "DELETE" "PATCH" "HEAD" "CONNECT" "COPY" "MOVE" "PROPPATCH" "PROPFIND" "MKCOL" "LOCK" "UNLOCK" "SEARCH" "BIND" "UNBIND" "REBIND" "MKREDIRECTREF" "UPDATEREDIRECTREF" "ORDERPATCH" "ACL" "REPORT") # --httpMethod values

Expand Down Expand Up @@ -706,6 +712,9 @@ function _picocli_cats_fuzz() {
-g|--skipLog)
return
;;
-O|--onlyLog)
return
;;
--reportFormat)
local IFS=$'\n'
COMPREPLY=( $( compReplyArray "${reportFormat_option_args[@]}" ) )
Expand Down Expand Up @@ -788,8 +797,8 @@ function _picocli_cats_lint() {
local prev_word=${COMP_WORDS[COMP_CWORD-1]}

local commands=""
local flag_opts="-D --debug --printExecutionStatistics --printDetailedExecutionStatistics --timestampReports -j --json -h --help -V --version"
local arg_opts="-l --log -g --skipLog --reportFormat -o --output --pathNaming --pathVariablesNaming --queryParamsNaming --jsonObjectsNaming --jsonPropertiesNaming --headersNaming -c --contract"
local flag_opts="-D --debug --printExecutionStatistics --printDetailedExecutionStatistics --timestampReports -j --json --checkUpdate -h --help -V --version"
local arg_opts="-l --log -g --skipLog -O --onlyLog --reportFormat -o --output --pathNaming --pathVariablesNaming --queryParamsNaming --jsonObjectsNaming --jsonPropertiesNaming --headersNaming -c --contract --skipFuzzers"
local reportFormat_option_args=("HTML_ONLY" "HTML_JS" "JUNIT") # --reportFormat values
local pathNaming_option_args=("SNAKE" "KEBAB" "HTTP_HEADER" "PASCAL" "CAMEL") # --pathNaming values
local pathVariablesNaming_option_args=("SNAKE" "KEBAB" "HTTP_HEADER" "PASCAL" "CAMEL") # --pathVariablesNaming values
Expand All @@ -807,6 +816,9 @@ function _picocli_cats_lint() {
-g|--skipLog)
return
;;
-O|--onlyLog)
return
;;
--reportFormat)
local IFS=$'\n'
COMPREPLY=( $( compReplyArray "${reportFormat_option_args[@]}" ) )
Expand Down Expand Up @@ -848,6 +860,9 @@ function _picocli_cats_lint() {
-c|--contract)
return
;;
--skipFuzzers)
return
;;
esac

if [[ "${curr_word}" == -* ]]; then
Expand Down

0 comments on commit b3e260a

Please sign in to comment.