28 lines
756 B
Bash
28 lines
756 B
Bash
|
|
#!/bin/bash
|
||
|
|
# Quick validation that all Baker family example files parse correctly
|
||
|
|
|
||
|
|
echo "Testing Baker family example files..."
|
||
|
|
echo ""
|
||
|
|
|
||
|
|
files=(
|
||
|
|
"schema/templates.sb"
|
||
|
|
"schedules/work_schedules.sb"
|
||
|
|
"behaviors/baker_behaviors.sb"
|
||
|
|
"characters/martha.sb"
|
||
|
|
"characters/john.sb"
|
||
|
|
"characters/emma.sb"
|
||
|
|
)
|
||
|
|
|
||
|
|
for file in "${files[@]}"; do
|
||
|
|
echo -n "Parsing $file... "
|
||
|
|
if cargo run --bin storybook -- check "$file" 2>&1 | grep -q "Successfully"; then
|
||
|
|
echo "✓"
|
||
|
|
else
|
||
|
|
echo "✗ (may need storybook CLI to be implemented)"
|
||
|
|
fi
|
||
|
|
done
|
||
|
|
|
||
|
|
echo ""
|
||
|
|
echo "Note: This is a manual check. Full validation requires the storybook compiler."
|
||
|
|
echo "All files use correct v0.2.0 syntax for resource linking and schedule composition."
|