#!/bin/zsh echo "[$(date +%T)] 🛰️ --- Factory Web Fleet Git Status ---" REPOS=( "the_groovy_panda:$FACTORY_HOME/web/bootstrap/the_groovy_panda" "groovy_panda_bakery:$FACTORY_HOME/web/bootstrap/groovy_panda_bakery" "Theme Cannon:$FACTORY_HOME/xcode/Factory_Apps/Theme Cannon" "Web Cannon:$FACTORY_HOME/xcode/Factory_Apps/Web Cannon" ) for entry in "${REPOS[@]}"; do name="${entry%%:*}" dir="${entry#*:}" if [ -d "$dir/.git" ]; then branch=$(cd "$dir" 2>/dev/null && git rev-parse --abbrev-ref HEAD 2>/dev/null || echo "none") raw_status=$(cd "$dir" 2>/dev/null && git status --short 2>/dev/null) if [ -z "$raw_status" ]; then printf " ✅ %-22s [%s] (clean)\n" "$name" "$branch" else count=$(echo "$raw_status" | wc -l | tr -d ' ') printf " ⚠️ %-22s [%s] (%s modified):\n" "$name" "$branch" "$count" echo "$raw_status" | sed 's/^/ /' fi else printf " ⚪️ %-22s (not a git repo)\n" "$name" fi done