#!/bin/bash # Regen Commands Header # Shows available regen commands and help information cliShowRegenHelp() { echo "" echo "Available Regen Commands:" echo "" echo " libreportal regen [scope] [--force] - Rebuild generated data whose sources changed" echo " all - webui + arrays (default)" echo " webui - apps.json / apps-tools.json from container configs" echo " arrays - the static source arrays from scripts/** (dev)" echo " --force - rebuild even if nothing looks stale" echo "" echo "Self-heal: each scope only rebuilds when a source file is newer than its" echo "generated artifact, so it is cheap to run any time. The task processor also" echo "runs 'regen webui' periodically, so a dropped-in app appears on its own." echo "" echo "Examples:" echo " libreportal regen - rebuild anything stale" echo " libreportal regen webui - just the WebUI data" echo " libreportal regen --force - force a full rebuild" echo "" }