Files
sysadmin-chronicles/tools/dev/test-content.sh
T
44r0n7 0265afa054 chore: bootstrap lean sysadmin-chronicles repo
Import the runnable game code, content, docs, scripts, and repo guidance while leaving local agent state, dependency installs, build output, and backup copies out of the published tree.
2026-05-02 11:49:07 -04:00

19 lines
537 B
Bash

#!/usr/bin/env bash
# test-content.sh — Run content validation from CLI
#
# Usage:
# bash tools/dev/test-content.sh
# bash tools/dev/test-content.sh --verbose
# bash tools/dev/test-content.sh --quests-only
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PROJECT_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)"
if ! command -v node &>/dev/null; then
echo "ERROR: node not found. Install Node.js to run content validation."
exit 1
fi
exec node "$PROJECT_ROOT/tools/content/validate-content.js" "$@"