fixed linting issues
parent
f6747fa09e
commit
449746a51e
|
|
@ -4,7 +4,7 @@ if command -v vue > /dev/null; then
|
||||||
__vuejs_completion() {
|
__vuejs_completion() {
|
||||||
local OPTS=("--version --help create add invoke inspect serve build ui init config outdated upgrade migrate info")
|
local OPTS=("--version --help create add invoke inspect serve build ui init config outdated upgrade migrate info")
|
||||||
COMPREPLY=()
|
COMPREPLY=()
|
||||||
for _opt_ in ${OPTS[@]}; do
|
for _opt_ in "${OPTS[@]}"; do
|
||||||
if [[ "$_opt_" == "$2"* ]]; then
|
if [[ "$_opt_" == "$2"* ]]; then
|
||||||
COMPREPLY+=("$_opt_")
|
COMPREPLY+=("$_opt_")
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ if command -v wpscan > /dev/null; then
|
||||||
|
|
||||||
local SINGLES=$(compgen -W "-h -v -f -o -t -e -U -P")
|
local SINGLES=$(compgen -W "-h -v -f -o -t -e -U -P")
|
||||||
local DOUBLES=$(compgen -W "--url --help --hh --version --ignore-main-redirect --banner --no-banner --max-scan-duration --format --output --detection-mode --user-agent --ua --http-auth --max-threads --throttle --request-timeout --connect-timeout --disable-tls-checks --proxy --proxy-auth --cookie-string --cookie-jar --force --update --no-update --api-token --wp-content-dir --wp-plugins-dir --enumerate --exclude-content-based --plugins-list --plugins-detection --plugins-version-all --plugins-version-detection --plugins-threshold --themes-list --themes-detection --themes-version-all --themes-version-detection --themes-threshold --timthumbs-list --timthumbs-detection --config-backups-list --config-backups-detection --db-exports-list --db-exports-detection --medias-detection --users-list --users-detection --passwords --usernames --multicall-max-passwords --password-attack --login-uri --stealthy --random-user-agent")
|
local DOUBLES=$(compgen -W "--url --help --hh --version --ignore-main-redirect --banner --no-banner --max-scan-duration --format --output --detection-mode --user-agent --ua --http-auth --max-threads --throttle --request-timeout --connect-timeout --disable-tls-checks --proxy --proxy-auth --cookie-string --cookie-jar --force --update --no-update --api-token --wp-content-dir --wp-plugins-dir --enumerate --exclude-content-based --plugins-list --plugins-detection --plugins-version-all --plugins-version-detection --plugins-threshold --themes-list --themes-detection --themes-version-all --themes-version-detection --themes-threshold --timthumbs-list --timthumbs-detection --config-backups-list --config-backups-detection --db-exports-list --db-exports-detection --medias-detection --users-list --users-detection --passwords --usernames --multicall-max-passwords --password-attack --login-uri --stealthy --random-user-agent")
|
||||||
local OPTS=(${SINGLES[@]} ${DOUBLES[@]})
|
local OPTS=("${SINGLES[@]}" "${DOUBLES[@]}")
|
||||||
|
|
||||||
local DETECTION="mixed active passive"
|
local DETECTION="mixed active passive"
|
||||||
case $prev in
|
case $prev in
|
||||||
|
|
@ -48,11 +48,9 @@ if command -v wpscan > /dev/null; then
|
||||||
|
|
||||||
## HANDLE ALL OTHER
|
## HANDLE ALL OTHER
|
||||||
*)
|
*)
|
||||||
for OPT in ${OPTS[@]}
|
for OPT in "${OPTS[@]}"; do
|
||||||
do
|
if [[ "$OPT" == "$2"* ]]; then
|
||||||
if [[ "$OPT" == "$2"* ]]
|
COMPREPLY+=("$OPT")
|
||||||
then
|
|
||||||
COMPREPLY+=($OPT)
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue