|
|
@ -11,7 +11,7 @@ _ee_complete() |
|
|
|
# SETUP THE BASE LEVEL (everything after "ee") |
|
|
|
if [ $COMP_CWORD -eq 1 ]; then |
|
|
|
COMPREPLY=( $(compgen \ |
|
|
|
-W "stack site debug clean secure import-slow-log log update sync info" \ |
|
|
|
-W "stack site debug clean secure import-slow-log log update sync info --version --help --quiet" \ |
|
|
|
-- $cur) ) |
|
|
|
|
|
|
|
|
|
|
@ -214,10 +214,29 @@ _ee_complete() |
|
|
|
fi |
|
|
|
|
|
|
|
case "$prev" in |
|
|
|
"--wp" | "--wpsubdir" | "--wpsubdomain") |
|
|
|
"--wp") |
|
|
|
if [ ${COMP_WORDS[1]} != "debug" ]; then |
|
|
|
if [ ${COMP_WORDS[2]} == "create" ]; then |
|
|
|
retlist="--w3tc --wpfc --wpsc --pagespeed --hhvm --user --email --pass --wpredis" |
|
|
|
retlist="--wp --wpsc --w3tc --wpfc --pagespeed --hhvm --user --email --pass --wpredis" |
|
|
|
elif [ ${COMP_WORDS[2]} == "update" ]; then |
|
|
|
retlist="--wp --w3tc --wpfc --wpsc --pagespeed --hhvm --pagespeed=off --hhvm=off --wpredis" |
|
|
|
else |
|
|
|
retlist="" |
|
|
|
fi |
|
|
|
else |
|
|
|
retlist="--wp --wp=off --rewrite --rewrite=off -i --interactive" |
|
|
|
fi |
|
|
|
|
|
|
|
ret="${retlist[@]/$prev}" |
|
|
|
COMPREPLY=( $(compgen \ |
|
|
|
-W "$(echo $ret)" \ |
|
|
|
-- $cur) ) |
|
|
|
;; |
|
|
|
|
|
|
|
"--wpsubdir" | "--wpsubdomain") |
|
|
|
if [ ${COMP_WORDS[1]} != "debug" ]; then |
|
|
|
if [ ${COMP_WORDS[2]} == "create" ]; then |
|
|
|
retlist="--wpsc --w3tc --wpfc --pagespeed --hhvm --user --email --pass --wpredis" |
|
|
|
elif [ ${COMP_WORDS[2]} == "update" ]; then |
|
|
|
retlist="--w3tc --wpfc --wpsc --pagespeed --hhvm --pagespeed=off --hhvm=off --wpredis" |
|
|
|
else |
|
|
@ -233,9 +252,9 @@ _ee_complete() |
|
|
|
-- $cur) ) |
|
|
|
;; |
|
|
|
|
|
|
|
"--pagespeed" | "--hhvm" | "--wpredis" | "--w3tc" | "--wpfc" | "--wpsc" | "--wpsubdir" | "--wpsubdomain" | "--user" | "--pass" | "--email") |
|
|
|
"--pagespeed" | "--hhvm" | "--wpredis" | "--w3tc" | "--wpfc" | "--wpsc" | "--wpsubdir" | "--wpsubdomain" | "--user" | "--pass" | "--email" | "--wp") |
|
|
|
if [ ${COMP_WORDS[2]} == "create" ]; then |
|
|
|
retlist="--user --pass --email --html --php --mysql --wp --wpsubdir --wpsubdomain --w3tc --wpfc --wpsc --hhvm --pagespeed --experimenal --wpredis" |
|
|
|
retlist="--user --pass --email --wp --wpsubdir --wpsubdomain --w3tc --wpfc --wpsc --hhvm --pagespeed --experimenal --wpredis" |
|
|
|
else |
|
|
|
retlist="" |
|
|
|
fi |
|
|
|