From d710113900328070bc369347fe5f3619cb484c71 Mon Sep 17 00:00:00 2001 From: Mitesh Shah Date: Mon, 17 Jun 2013 15:28:44 +0530 Subject: [PATCH] Change Easy Engine Help Messages --- etc/bash_completion.d/ee | 44 +++++++++++++++++++++++++++++++++++---- usr/local/sbin/easyengine | 15 ++++++------- 2 files changed, 48 insertions(+), 11 deletions(-) diff --git a/etc/bash_completion.d/ee b/etc/bash_completion.d/ee index e700e23c..b488d03f 100644 --- a/etc/bash_completion.d/ee +++ b/etc/bash_completion.d/ee @@ -8,7 +8,7 @@ EEAUTO() local CURRENT=${COMP_WORDS[COMP_CWORD]} # List Of Suggested Words - COMPREPLY=( $(compgen -W "system site" -- $CURRENT) ) + COMPREPLY=( $(compgen -W "system site help" -- $CURRENT) ) # Get Previous Word local PREVIOUS=${COMP_WORDS[COMP_CWORD-1]} @@ -16,7 +16,7 @@ EEAUTO() # List Of Suggested Words case "$PREVIOUS" in system) - COMPREPLY=( $( compgen -W "install remove purge" -- $CURRENT ) ) + COMPREPLY=( $( compgen -W "install remove purge config" -- $CURRENT ) ) return 0 ;; @@ -25,13 +25,49 @@ EEAUTO() return 0 ;; - nginx|php|mysql|pma|postfix|all) + config) + COMPREPLY=( $( compgen -W "get set" -- $CURRENT ) ) + return 0 + ;; + + get|set) + COMPREPLY=( $( compgen -W "memory timeout" -- $CURRENT ) ) + return 0 + ;; + + nginx|php|mysql|pma|postfix|all|memory|timeout) COMPREPLY=( $( compgen -W "" -- $CURRENT ) ) return 0 ;; site) - COMPREPLY=( $( compgen -W "info list show create enable disable update delete backup" -- $CURRENT ) ) + COMPREPLY=( $( compgen -W "list listall show info create update delete" -- $CURRENT ) ) + return 0 + ;; + + create|update) + COMPREPLY=( $( compgen -W "html php wpsingle wpsubdir wpsubdomain" -- $CURRENT ) ) + return 0 + ;; + + wpsingle|wpsubdir|wpsubdomain) + COMPREPLY=( $( compgen -W "basic w3tc wpsc wpfc" -- $CURRENT ) ) + return 0 + ;; + + delete) + COMPREPLY=( $( compgen -W "files db all" -- $CURRENT ) ) + return 0 + ;; + + list|listall|show|info|html|php|basic|w3tc|wpsc|wpfc|files|db|all) + COMPREPLY=( $( compgen -W "" -- $CURRENT ) ) + return 0 + ;; + + + help) + COMPREPLY=( $( compgen -W "" -- $CURRENT ) ) return 0 ;; esac diff --git a/usr/local/sbin/easyengine b/usr/local/sbin/easyengine index 5a5721de..0cf72f44 100755 --- a/usr/local/sbin/easyengine +++ b/usr/local/sbin/easyengine @@ -10,16 +10,17 @@ EngineHelp() echo echo "OPTION:" echo " `basename $0` [system] [install|remove|purge] [nginx|php|mysql|pma|postfix|all]" + echo " `basename $0` [system] [config] [set|get] [memory|timeout]" echo - echo " `basename $0` [site] [read] [available|enabled|sitename]" - echo " `basename $0` [site] [create] [sitename] [--with-wordpress]" - echo " `basename $0` [site] [update] [sitename] [singlesite] [w3total|wpsuper|fastcgi]" - echo " `basename $0` [site] [update] [sitename] [multisite] [subdomain|subdirectory] [basic|w3total|wpsuper|fastcgi]" - echo " `basename $0` [site] [delete] [sitename] [--database|--webroot|--all]" - + echo " `basename $0` [site] [list|listall]" + echo " `basename $0` [site] [show|info] [sitename]" + echo + echo " `basename $0` [site] [create|update] [html|php] [sitename]" + echo " `basename $0` [site] [create|update] [wpsingle|wpsubdir|wpsubdomain] [basic|w3tc|wpsc|wpfc] [sitename]" echo - echo " `basename $0` [config] [set|get] [memory|timeout]" + echo " `basename $0` [site] [delete] [files|db|all]" + echo echo " `basename $0` [update] "