Skip to content

Commit f2c8c3f

Browse files
author
Tobias Wojtylak
committed
renamed init to add plugin
1 parent 05d0a4d commit f2c8c3f

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

bin/sdActivatePlugin.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ PLUGIN_NAME=$(find . -name '*.php' -maxdepth 1 |sed 's#.*/##' | sed 's/\.php$//1
3232

3333
PLUGIN_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
7171
export PROJECT_NAME
7272

7373
case "$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
;;
8585
esac

0 commit comments

Comments
 (0)