Skip to content

Commit 89b133e

Browse files
committed
Merge updateall => master
2 parents 39a5638 + ba8bb58 commit 89b133e

File tree

4 files changed

+146
-82
lines changed

4 files changed

+146
-82
lines changed

config/bash_completion.d/ee_auto.rc

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ _ee_complete()
9393
-- $cur) )
9494
;;
9595

96-
"edit" | "enable" | "info" | "log" | "show" | "cd" | "update" | "delete")
96+
"edit" | "enable" | "info" | "log" | "show" | "cd" | "delete")
9797
if [ ${COMP_WORDS[1]} == "log" ]; then
9898
COMPREPLY=( $(compgen \
9999
-W "$(find /etc/nginx/sites-available/ -type f -printf "%P " 2> /dev/null) --nginx --php --fpm --mysql --access" \
@@ -104,7 +104,11 @@ _ee_complete()
104104
-- $cur) )
105105
fi
106106
;;
107-
107+
"update")
108+
COMPREPLY=( $(compgen \
109+
-W "$(find /etc/nginx/sites-available/ -type f -printf "%P " 2> /dev/null) --all" \
110+
-- $cur) )
111+
;;
108112
"gzip")
109113
COMPREPLY=( $(compgen \
110114
-W "$(find /etc/nginx/sites-available/ -type f -printf "%P " 2> /dev/null) --nginx --php --fpm --mysql --access" \
@@ -235,7 +239,6 @@ _ee_complete()
235239
elif [ ${COMP_WORDS[2]} == "reset" ]; then
236240
retlist="--access --nginx --php --mysql --fpm --wp --slow-log-db"
237241

238-
239242
elif [ ${COMP_WORDS[2]} == "mail" ]; then
240243
retlist="--access --nginx --php --mysql --fpm --wp --to="
241244

@@ -258,9 +261,12 @@ _ee_complete()
258261
"--all")
259262
if [ ${COMP_WORDS[1]} == "clean" ]; then
260263
retlist="--memcache --opcache --fastcgi"
261-
else
264+
elif [ ${COMP_WORDS[2]} == "delete" ]; then
262265
retlist="--db --files"
263-
266+
elif [ ${COMP_WORDS[2]} == "update" ]; then
267+
retlist="--password --php --mysql --wp --wpsubdir --wpsubdomain --w3tc --wpfc --wpsc --hhvm --hhvm=off --pagespeed --pagespeed=off"
268+
else
269+
retlist=""
264270
fi
265271
ret="${retlist[@]/$prev}"
266272
COMPREPLY=( $(compgen \

0 commit comments

Comments
 (0)