diff --git a/mage2docker.plugin.zsh b/mage2docker.plugin.zsh index fff4cf4..7ed1908 100644 --- a/mage2docker.plugin.zsh +++ b/mage2docker.plugin.zsh @@ -37,7 +37,7 @@ _mage2docker() { compadd $(_docker_get_container_name) ;; command) - compadd "$@" bash-www bash logs magento mage mage-cache mage-di mage-upgrade mage-report mage-log grunt watch rename rm restart stop inspect top + compadd "$@" bash-www bash logs magento mage mage-cache mage-reindex mage-di mage-upgrade mage-report mage-log grunt watch rename rm restart stop inspect top ;; options) case $words[3] in @@ -79,6 +79,9 @@ mage2docker () { mage-cache) _mage2docker_mage $1 cache:clean ;; + mage-reindex) + _mage2docker_mage $1 indexer:reindex + ;; mage-upgrade) _mage2docker_mage $1 setup:upgrade ;; @@ -91,9 +94,6 @@ mage2docker () { grunt) docker exec -it -u www-data $1 grunt ;; - watch) - docker exec -it -u www-data $1 grunt watch - ;; mage-report) docker exec -it -u www-data $1 cat var/report/$3 ;;