#!/bin/bash # Ensure the submodule is initialized git submodule update --init # Generate the Go bindings rm -rf pkg mkdir -p pkg # Note: We don't use --generate-stubs here because we have hand-written # bridge code in internal/exports that maps the WIT exports to our # higher-level Go API in the api/ package. wit-bindgen go --pkg-name github.com/Pumpkin-MC/pumpkin-api-go/pkg \ --export-pkg-name github.com/Pumpkin-MC/pumpkin-api-go/internal/exports \ --out-dir pkg -w plugin wit/repo/pumpkin-plugin-wit/v0.1 echo "Bindings generated successfully in pkg/"