34 lines
731 B
Bash
Raw Normal View History

#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")"
echo "🔧 Running nickel-roundtrip with CLI backend..."
echo ""
# Check if config.ncl exists
if [ ! -f "config.ncl" ]; then
echo "❌ config.ncl not found! Run ./01-generate-initial-config.sh first"
exit 1
fi
# Backup current config
cp config.ncl "config.ncl.backup.$(date +%Y%m%d_%H%M%S)"
# Run roundtrip with CLI backend
cargo run -p typedialog --release -- nickel-roundtrip \
--input config.ncl \
--form ci-form.toml \
--output config.ncl \
--ncl-template config.ncl.j2 \
--verbose
echo ""
echo "✅ Roundtrip completed!"
echo ""
echo "Review changes:"
echo " cat config.ncl"
echo ""
echo "Run again:"
echo " ./02-roundtrip-cli.sh"