File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ PLUGIN_NAME=$(find . -name '*.php' -maxdepth 1 |sed 's#.*/##' | sed 's/\.php$//1
3232
3333PLUGIN_DIRECTORY=" custom/plugins/$PLUGIN_NAME "
3434
35- function init_plugin {
35+ function add_plugin {
3636 echo " Init plugin $PLUGIN_NAME "
3737 link_plugin
3838 install_plugin
@@ -54,7 +54,7 @@ function activate_plugin {
5454 execute_in_docker " bin/console sw:cache:clear"
5555}
5656
57- function reset_plugin {
57+ function remove_plugin {
5858 execute_in_docker " bin/console sw:plugin:deactivate $PLUGIN_NAME "
5959 execute_in_docker " bin/console sw:plugin:uninstall $PLUGIN_NAME "
6060 execute_in_docker " rm $PLUGIN_DIRECTORY "
@@ -71,15 +71,15 @@ export PROJECT_DIR
7171export PROJECT_NAME
7272
7373case " $2 " in
74- init )
74+ add )
7575 shift
76- init_plugin $@
76+ add_plugin $@
7777 ;;
78- reset )
78+ remove )
7979 shift
80- reset_plugin $@
80+ remove_plugin $@
8181 ;;
8282 * )
83- echo " usage: init/reset "
83+ echo " usage: add/remove "
8484 ;;
8585esac
You can’t perform that action at this time.
0 commit comments