Browse Source

Change Auto Completion As Per New EasyEngine Syntax

old-stable
Mitesh Shah 11 years ago
parent
commit
70b2965f53
  1. 27
      etc/bash_completion.d/ee

27
etc/bash_completion.d/ee

@ -18,7 +18,7 @@ EEAUTO()
# List Of Suggested Words # List Of Suggested Words
easyengine|ee) easyengine|ee)
COMPREPLY=( $(compgen -W "info help version system site" -- $CURRENT) ) COMPREPLY=( $(compgen -W "version info help system site" -- $CURRENT) )
return 0 return 0
;; ;;
@ -42,19 +42,11 @@ EEAUTO()
return 0 return 0
;; ;;
show|enable|db|files) show|enable|delete)
COMPREPLY=( $( compgen -W '$(command find /etc/nginx/sites-available/ -type f -printf "%P " 2>/dev/null)' -- $CURRENT ) ) COMPREPLY=( $( compgen -W '$(command find /etc/nginx/sites-available/ -type f -printf "%P " 2>/dev/null)' -- $CURRENT ) )
return 0 return 0
;; ;;
all)
if [ "$EECOMMON" = "delete" ]
then
COMPREPLY=( $( compgen -W '$(command find /etc/nginx/sites-available/ -type f -printf "%P " 2>/dev/null)' -- $CURRENT ) )
fi
return 0
;;
info) info)
if [ "$EECOMMON" = "site" ] if [ "$EECOMMON" = "site" ]
then then
@ -68,21 +60,6 @@ EEAUTO()
return 0 return 0
;; ;;
create)
COMPREPLY=( $( compgen -W "html php wp wpsubdir wpsubdomain" -- $CURRENT ) )
return 0
;;
wp|wpsubdir|wpsubdomain)
COMPREPLY=( $( compgen -W "basic w3tc wpsc wpfc" -- $CURRENT ) )
return 0
;;
delete)
COMPREPLY=( $( compgen -W "files db all" -- $CURRENT ) )
return 0
;;
esac esac
} }

Loading…
Cancel
Save