We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d18bf7e commit 8941f81Copy full SHA for 8941f81
2 files changed
scripts/soda/exec.sh
@@ -126,3 +126,17 @@ execute() {
126
return 1
127
fi
128
}
129
+
130
+#
131
+# Calls the given function. Using this method will broadcast events around the call:
132
133
+# ${TASK_NAME}-start: after task call
134
+# ${TASK_NAME}-finish: before task call
135
136
+call() {
137
+ local task="$1"
138
+ shift
139
+ broadcast "${task}-start"
140
+ $task $@
141
+ broadcast "${task}-finish"
142
+}
soda
@@ -90,6 +90,6 @@ if [[ -n "$task_name" ]]; then
90
exit 1
91
92
broadcast "start"
93
- "$TASK" "${SODA_TASK_PARAMETERS[@]:1}"
+ call "$TASK" "${SODA_TASK_PARAMETERS[@]:1}"
94
broadcast "finish"
95
0 commit comments