Skip to content

Commit e5c365c

Browse files
committed
Debug Autocompletion
1 parent 5bc3d75 commit e5c365c

File tree

1 file changed

+37
-2
lines changed
  • etc/bash_completion.d

1 file changed

+37
-2
lines changed

etc/bash_completion.d/ee

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ EEAUTO()
1818

1919
# List Of Suggested Words
2020
easyengine|ee)
21-
COMPREPLY=( $(compgen -W "version info update help system site" -- $CURRENT) )
21+
COMPREPLY=( $(compgen -W "version info update help system site debug" -- $CURRENT) )
2222
return 0
2323
;;
2424

@@ -32,6 +32,41 @@ EEAUTO()
3232
return 0
3333
;;
3434

35+
debug)
36+
COMPREPLY=( $(compgen -W "--nginx --rewrite --php --fpm --mysql --wp --stop" -- $CURRENT) )
37+
return 0
38+
;;
39+
40+
--nginx)
41+
COMPREPLY=( $(compgen -W "--rewrite --php --fpm --mysql --wp --stop" -- $CURRENT) )
42+
return 0
43+
;;
44+
45+
--rewrite)
46+
COMPREPLY=( $(compgen -W "--nginx --php --fpm --mysql --wp --stop" -- $CURRENT) )
47+
return 0
48+
;;
49+
50+
--php)
51+
COMPREPLY=( $(compgen -W "--nginx --rewrite --fpm --mysql --wp --stop" -- $CURRENT) )
52+
return 0
53+
;;
54+
55+
--fpm)
56+
COMPREPLY=( $(compgen -W "--nginx --rewrite --php --mysql --wp --stop" -- $CURRENT) )
57+
return 0
58+
;;
59+
60+
--mysql)
61+
COMPREPLY=( $(compgen -W "--nginx --rewrite --php --fpm --wp --stop" -- $CURRENT) )
62+
return 0
63+
;;
64+
65+
--wp)
66+
COMPREPLY=( $(compgen -W "--nginx --rewrite --php --fpm --mysql --stop" -- $CURRENT) )
67+
return 0
68+
;;
69+
3570
site)
3671
COMPREPLY=( $( compgen -W "list show info create enable disable delete edit" -- $CURRENT ) )
3772
return 0
@@ -42,7 +77,7 @@ EEAUTO()
4277
return 0
4378
;;
4479

45-
show|enable|delete)
80+
show|enable|delete|--stop)
4681
COMPREPLY=( $( compgen -W '$(command find /etc/nginx/sites-available/ -type f -printf "%P " 2>/dev/null)' -- $CURRENT ) )
4782
return 0
4883
;;

0 commit comments

Comments
 (0)