Skip to content

High-performance browser automation bridge and multi-instance orchestrator with advanced stealth injection and real-time dashboard.

chore: add format.sh helper script and improve pre-commit gofmt message

Mario8ed9e01d317c
diff --git a/.githooks/pre-commit b/.githooks/pre-commit
index 787bdcdf..f5f4f0fe 100755
--- a/.githooks/pre-commit
+++ b/.githooks/pre-commit
@@ -4,8 +4,12 @@ set -e
echo "🦀 pre-commit: gofmt..."
unformatted=$(gofmt -l .)
if [ -n "$unformatted" ]; then
- echo "Files not formatted (run 'gofmt -w .'):"
+ echo "❌ Files not formatted:"
echo "$unformatted"
+ echo ""
+ echo "Fix with: ./scripts/format.sh"
+ echo "Or run: gofmt -w ."
+ echo ""
exit 1
fi
diff --git a/scripts/format.sh b/scripts/format.sh
new file mode 100755
index 00000000..e5cefb53
--- /dev/null
+++ b/scripts/format.sh
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+# Format all Go code with gofmt before committing
+# Usage: ./scripts/format.sh
+
+set -e
+
+echo "🦀 Running gofmt on all Go files..."
+gofmt -w .
+
+echo "✓ All files formatted"
+echo ""
+echo "Next steps:"
+echo " 1. Review changes: git status"
+echo " 2. Stage changes: git add ."
+echo " 3. Commit: git commit -m '...'"
+echo ""
+echo "Or use: git add . && git commit (pre-commit hook will verify format)"