Skip to content

Commit 814a068

Browse files
committed
chore: Make extension generation script more generic
1 parent 09a6bb0 commit 814a068

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

scripts/obelisk-generate-extensions.sh

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,17 @@
33
set -exuo pipefail
44
cd "$(dirname "$0")/.."
55

6-
obelisk generate extensions activity_wasm activity-fly-http/wit/
6+
generate() {
7+
local path="$1"
8+
local component_type="$2"
9+
10+
find "$path" -maxdepth 1 -type d -exec test -d "{}/wit" \; -print | while read -r dir; do
11+
echo "Updating $dir"
12+
(
13+
cd "$dir" || exit
14+
obelisk generate extensions "$component_type" wit
15+
)
16+
done
17+
}
18+
19+
generate "activity" "activity_wasm"

0 commit comments

Comments
 (0)