-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdrupal-console.sh
More file actions
executable file
·49 lines (48 loc) · 1.3 KB
/
drupal-console.sh
File metadata and controls
executable file
·49 lines (48 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/bin/bash
PS3='what do you want to do: '
options=("Display site status"
"Display sistem site info"
"Check updates"
"Generate module"
"Generate controller"
"Generate form"
"Generate FORM_ALTER of form_ID_ALTER"
"Generate service"
"Generate theme"
"Quit")
select opt in "${options[@]}"
do
case $opt in
"Display site status")
vendor/bin/drupal site:status
;;
"Display sistem site info")
vendor/bin/drupal debug:config system.site
;;
"Check updates")
vendor/bin/drupal debug:update
;;
"Generate module")
vendor/bin/drupal generate:module
;;
"Generate controller")
vendor/bin/drupal generate:controller
;;
"Generate form")
vendor/bin/drupal generate:form
;;
"Generate FORM_ALTER of form_ID_ALTER")
vendor/bin/drupal generate:form:alter
;;
"Generate service")
vendor/bin/drupal generate:service
;;
"Generate theme")
vendor/bin/drupal generate:theme
;;
"Quit")
break
;;
*) echo "invalid option $REPLY";;
esac
done