spine-runtimes/formatters/format-haxe.sh
2025-07-16 01:35:13 +02:00

14 lines
368 B
Bash
Executable File

#!/bin/bash
set -e
# Format Haxe files
echo "Formatting Haxe files..."
if command -v haxelib &> /dev/null && haxelib list formatter &> /dev/null; then
# Format spine-haxe directory
if [ -d ../spine-haxe ]; then
haxelib run formatter -s ../spine-haxe
fi
else
echo "Warning: haxe formatter not found. Install with: haxelib install formatter"
fi