@@ -29,7 +29,7 @@ _ee_complete()
2929 # IF YOU HAD ANOTHER CONTROLLER, YOU'D HANDLE THAT HERE
3030 "debug")
3131 COMPREPLY=( $(compgen \
32- -W "$(command find /etc/nginx/sites-enabled/ -type l -printf "%P " 2> /dev/null) --nginx --php --fpm --mysql -i --interactive --all --import-slow-log --import-slow-log-interval= --nginx=off --php=off --fpm=off --mysql=off --all=off " \
32+ -W "$(command find /etc/nginx/sites-enabled/ -type l -printf "%P " 2> /dev/null) --nginx --php --php7 -- fpm --fpm7 -- mysql -i --interactive --all --import-slow-log --import-slow-log-interval= --nginx=off --php=off --php7=off -- fpm=off --fpm7 =off --mysql=off --all=off " \
3333 -- $cur) )
3434 ;;
3535
@@ -53,7 +53,7 @@ _ee_complete()
5353
5454 "info")
5555 COMPREPLY=( $(compgen \
56- -W "--mysql --php --nginx" \
56+ -W "--mysql --php --php7 -- nginx" \
5757 -- $cur) )
5858 ;;
5959
@@ -74,17 +74,17 @@ _ee_complete()
7474 # HANDLE EVERYTHING AFTER THE THIRD LEVEL NAMESPACE
7575 "install" | "purge" | "remove" )
7676 COMPREPLY=( $(compgen \
77- -W "--pagespeed --web --admin --mail --nginx --nginxmainline --php --mysql --postfix --wpcli --phpmyadmin --adminer --utils --all --mailscanner --hhvm --redis --phpredisadmin" \
77+ -W "--pagespeed --web --admin --mail --nginx --nginxmainline --php --php7 -- mysql --postfix --wpcli --phpmyadmin --adminer --utils --all --mailscanner --hhvm --redis --phpredisadmin" \
7878 -- $cur) )
7979 ;;
8080 "upgrade" )
8181 COMPREPLY=( $(compgen \
82- -W "--web --mail --nginx --php --mysql --postfix --all --hhvm --php56 --no-prompt --wpcli" \
82+ -W "--web --mail --nginx --php --php7 -- mysql --postfix --all --hhvm --php56 --no-prompt --wpcli" \
8383 -- $cur) )
8484 ;;
8585 "start" | "stop" | "reload" | "restart" | "status")
8686 COMPREPLY=( $(compgen \
87- -W "--nginx --php --mysql --postfix --memcache --dovecot --redis" \
87+ -W "--nginx --php --php7 -- mysql --postfix --memcache --dovecot --redis" \
8888 -- $cur) )
8989 ;;
9090 "migrate")
@@ -142,7 +142,7 @@ _ee_complete()
142142 ;;
143143 esac
144144
145- if [ ${COMP_WORDS[1]} == "debug" ] && ([ "$prev" != "--start" ] && [ "$prev" != "--nginx" ] && [ "$prev" != "--php" ] && [ "$prev" != "--fpm" ] && [ "$prev" != "--mysql" ] && [ "$prev" != "-i" ] && [ "$prev" != "--interactive" ] && [ "$prev" != "--import-slow-log" ] && [ "$prev" != "--stop" ]); then
145+ if [ ${COMP_WORDS[1]} == "debug" ] && ([ "$prev" != "--start" ] && [ "$prev" != "--nginx" ] && [ "$prev" != "--php" ] && [ "$prev" != "--php7" ] && [ "$prev" != "-- fpm" ] && [ "$prev" != "--fpm7 " ] && [ "$prev" != "--mysql" ] && [ "$prev" != "-i" ] && [ "$prev" != "--interactive" ] && [ "$prev" != "--import-slow-log" ] && [ "$prev" != "--stop" ]); then
146146 retlist="--all --wp --rewrite -i --all=off --wp=off --rewrite=off"
147147 ret="${retlist[@]/$prev}"
148148 COMPREPLY=( $(compgen \
@@ -165,13 +165,13 @@ _ee_complete()
165165
166166 "create")
167167 COMPREPLY=( $(compgen \
168- -W "--user --pass --email --html --php --mysql --wp --wpsubdir --wpsubdomain --w3tc --wpfc --wpsc --hhvm --proxy= --pagespeed --wpredis --letsencrypt -le" \
168+ -W "--user --pass --email --html --php --php7 -- mysql --wp --wpsubdir --wpsubdomain --w3tc --wpfc --wpsc --hhvm --proxy= --pagespeed --wpredis --letsencrypt -le" \
169169 -- $cur) )
170170 ;;
171171
172172 "update")
173173 COMPREPLY=( $(compgen \
174- -W "--password --php --mysql --wp --wpsubdir --wpsubdomain --w3tc --wpfc --wpsc --hhvm --hhvm=off --pagespeed --pagespeed=off --wpredis --letsencrypt --letsencrypt=off --letsencrypt=renew" \
174+ -W "--password --php --php7 -- mysql --wp --wpsubdir --wpsubdomain --w3tc --wpfc --wpsc --hhvm --hhvm=off --pagespeed --pagespeed=off --wpredis --letsencrypt --letsencrypt=off --letsencrypt=renew" \
175175 -- $cur) )
176176 ;;
177177 "delete")
@@ -217,9 +217,9 @@ _ee_complete()
217217 "--wp")
218218 if [ ${COMP_WORDS[1]} != "debug" ]; then
219219 if [ ${COMP_WORDS[2]} == "create" ]; then
220- retlist="--wp --wpsc --w3tc --wpfc --pagespeed --hhvm --user --email --pass --wpredis --letsencrypt"
220+ retlist="--wp --wpsc --w3tc --wpfc --pagespeed --hhvm --user --email --pass --wpredis --letsencrypt --php7 "
221221 elif [ ${COMP_WORDS[2]} == "update" ]; then
222- retlist="--wp --w3tc --wpfc --wpsc --pagespeed --hhvm --pagespeed=off --hhvm=off --wpredis --letsencrypt --letsencrypt=off --letsencrypt=renew"
222+ retlist="--wp --w3tc --wpfc --wpsc --php7 --php7=off -- pagespeed --hhvm --pagespeed=off --hhvm=off --wpredis --letsencrypt --letsencrypt=off --letsencrypt=renew"
223223 else
224224 retlist=""
225225 fi
@@ -236,9 +236,9 @@ _ee_complete()
236236 "--wpsubdir" | "--wpsubdomain")
237237 if [ ${COMP_WORDS[1]} != "debug" ]; then
238238 if [ ${COMP_WORDS[2]} == "create" ]; then
239- retlist="--wpsc --w3tc --wpfc --pagespeed --hhvm --user --email --pass --wpredis --letsencrypt"
239+ retlist="--wpsc --w3tc --wpfc --pagespeed --hhvm --user --email --pass --wpredis --letsencrypt --php7 "
240240 elif [ ${COMP_WORDS[2]} == "update" ]; then
241- retlist="--w3tc --wpfc --wpsc --pagespeed --hhvm --pagespeed=off --hhvm=off --wpredis --letsencrypt --letsencrypt=off --letsencrypt=renew"
241+ retlist="--w3tc --wpfc --wpsc --php7 --php7=off -- pagespeed --hhvm --pagespeed=off --hhvm=off --wpredis --letsencrypt --letsencrypt=off --letsencrypt=renew"
242242 else
243243 retlist=""
244244 fi
@@ -254,7 +254,7 @@ _ee_complete()
254254
255255 "--pagespeed" | "--hhvm" | "--wpredis" | "--w3tc" | "--wpfc" | "--wpsc" | "--wpsubdir" | "--wpsubdomain" | "--user" | "--pass" | "--email" | "--wp")
256256 if [ ${COMP_WORDS[2]} == "create" ]; then
257- retlist="--user --pass --email --wp --wpsubdir --wpsubdomain --w3tc --wpfc --wpsc --hhvm --pagespeed --experimenal --wpredis --letsencrypt"
257+ retlist="--user --pass --email --wp --wpsubdir --wpsubdomain --w3tc --wpfc --wpsc --hhvm --pagespeed --experimenal --wpredis --php7 -- letsencrypt "
258258 else
259259 retlist=""
260260 fi
@@ -267,7 +267,7 @@ _ee_complete()
267267
268268 "--pagespeed" | "--hhvm" | "--wpredis" | "--w3tc" | "--wpfc")
269269 if [ ${COMP_WORDS[2]} == "update" ]; then
270- retlist="--password --php --mysql --wp --wpsubdir --wpsubdomain --w3tc --wpfc --wpsc --hhvm --hhvm=off --pagespeed --pagespeed=off --experimenal --wpredis --letsencrypt --letsencrypt=off --letsencrypt=renew"
270+ retlist="--password --php --php7 -- mysql --wp --wpsubdir --wpsubdomain --w3tc --wpfc --wpsc --hhvm --hhvm=off --pagespeed --pagespeed=off --experimenal --wpredis --letsencrypt --letsencrypt=off --letsencrypt=renew"
271271 else
272272 retlist=""
273273 fi
@@ -278,15 +278,15 @@ _ee_complete()
278278 -- $cur) )
279279 ;;
280280
281- "--web" | "--admin" | "--mail" | "--nginx" | "--php" | "--mysql" | "--postfix" | "--wpcli" | "--phpmyadmin" | "--adminer" | "--utils" | "--memcache" | "--dovecot" | "--redis | --phpredisadmin")
281+ "--web" | "--admin" | "--mail" | "--nginx" | "--php" | "--php7" | "-- mysql" | "--postfix" | "--wpcli" | "--phpmyadmin" | "--adminer" | "--utils" | "--memcache" | "--dovecot" | "--redis | --phpredisadmin")
282282 if [[ ${COMP_WORDS[2]} == "install" || ${COMP_WORDS[2]} == "purge" || ${COMP_WORDS[2]} == "remove" ]]; then
283- retlist="--web --admin --mail --nginx --php --mysql --postfix --wpcli --phpmyadmin --adminer --utils --memcache --dovecot --redis --phpredisadmin"
283+ retlist="--web --admin --mail --nginx --php --php7 -- mysql --postfix --wpcli --phpmyadmin --adminer --utils --memcache --dovecot --redis --phpredisadmin"
284284 elif [[ ${COMP_WORDS[2]} == "start" || ${COMP_WORDS[2]} == "reload" || ${COMP_WORDS[2]} == "restart" || ${COMP_WORDS[2]} == "stop" ]]; then
285- retlist="--nginx --php --mysql --postfix --memcache --dovecot --redis"
285+ retlist="--nginx --php --php7 -- mysql --postfix --memcache --dovecot --redis"
286286 elif [[ ${COMP_WORDS[1]} == "debug" ]]; then
287- retlist="--start --nginx --php --fpm --mysql -i --interactive -stop --import-slow-log --import-slow-log-interval= -"
287+ retlist="--start --nginx --php --php7 -- fpm --fpm7 --mysql -i --interactive -stop --import-slow-log --import-slow-log-interval= -"
288288 if [[ $prev == '--mysql' ]]; then
289- retlist="--start --nginx --php --fpm --mysql -i --interactive --stop --import-slow-log"
289+ retlist="--start --nginx --php --php7 -- fpm --fpm7 --mysql -i --interactive --stop --import-slow-log"
290290 fi
291291 elif [[ ${COMP_WORDS[1]} == "log" ]]; then
292292 if [ ${COMP_WORDS[2]} == "show" ]; then
@@ -369,7 +369,7 @@ _ee_complete()
369369 case "$mprev" in
370370 "--user" | "--email" | "--pass")
371371 if [ ${COMP_WORDS[2]} == "create" ]; then
372- retlist="--user --pass --email --html --php --mysql --wp --wpsubdir --wpsubdomain --w3tc --wpfc --wpsc --hhvm --pagespeed --wpredis --letsencrypt"
372+ retlist="--user --pass --email --html --php --php7 -- mysql --wp --wpsubdir --wpsubdomain --w3tc --wpfc --wpsc --hhvm --pagespeed --wpredis --letsencrypt"
373373 fi
374374 ret="${retlist[@]/$prev}"
375375 COMPREPLY=( $(compgen \
0 commit comments