fixed linting issue

pull/1754/head
Gurkirat Singh 2020-12-28 00:25:54 +05:30
parent 449746a51e
commit cd2469b59f
No known key found for this signature in database
GPG Key ID: BCF5FF7C9FC8EED0
2 changed files with 32 additions and 32 deletions

View File

@ -1,15 +1,15 @@
#!/usr/bin/bash #!/usr/bin/bash
if command -v vue > /dev/null; then 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
done done
} }
complete -F __vuejs_completion vue complete -F __vuejs_completion vue
fi fi

View File

@ -2,54 +2,54 @@
if command -v wpscan > /dev/null; then if command -v wpscan > /dev/null; then
_wpscan() { _wpscan() {
local cur prev local cur prev
COMREPLY=() COMREPLY=()
cur=$( _get_cword) cur=$( _get_cword)
prev=$( _get_pword) prev=$( _get_pword)
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
--format | -f) --format | -f)
COMPREPLY=($( compgen -W "cli cli-no-color json" -- "$cur")) COMPREPLY=("$( compgen -W "cli cli-no-color json" -- "$cur")")
return 0 return 0
;; ;;
--detection-mode | *detection) --detection-mode | *detection)
COMPREPLY=($( compgen -W "$DETECTION" -- "$cur")) COMPREPLY=("$( compgen -W "$DETECTION" -- "$cur")")
return 0 return 0
;; ;;
--enumerate | -e) --enumerate | -e)
case $prev in case $prev in
vp | ap | p) vp | ap | p)
COMPREPLY=($( compgen -W "vt at t tt cb dbe u m" -- "$cur")) COMPREPLY=("$( compgen -W "vt at t tt cb dbe u m" -- "$cur")")
return 0 return 0
;; ;;
vt | at | t) vt | at | t)
COMPREPLY=($( compgen -W "vp ap p tt cb dbe u m" -- "$cur")) COMPREPLY=("$( compgen -W "vp ap p tt cb dbe u m" -- "$cur")")
return 0 return 0
;; ;;
*) *)
COMPREPLY=($( compgen -W "vp ap p vt at t tt cb dbe u m" -- "$cur")) COMPREPLY=("$( compgen -W "vp ap p vt at t tt cb dbe u m" -- "$cur")")
return 0 return 0
;; ;;
esac esac
;; ;;
--password-attack) --password-attack)
COMPREPLY=($( compgen -W "wp-login xmlrpc xmlrpc-multicall" -- "$cur")) COMPREPLY=("$( compgen -W "wp-login xmlrpc xmlrpc-multicall" -- "$cur")")
;; ;;
## HANDLE ALL OTHER ## HANDLE ALL OTHER
*) *)
for OPT in "${OPTS[@]}"; do for OPT in "${OPTS[@]}"; do
if [[ "$OPT" == "$2"* ]]; then if [[ "$OPT" == "$2"* ]]; then
COMPREPLY+=("$OPT") COMPREPLY+=("$OPT")
fi fi
done done
@ -58,5 +58,5 @@ if command -v wpscan > /dev/null; then
esac esac
} }
complete -F _wpscan wpscan complete -F _wpscan wpscan
fi fi