1.3 KiB
1.3 KiB
Quick Reference - Scripts Modularization
Current Status
- ✅ Structure: Complete
- ✅ Libraries: Complete (7 files)
- ⏳ Scripts: 30 to migrate
- ⏳ Updates: 30 to update
Quick Commands
Move All Scripts
cd /home/intlc/projects/scripts
mv migrate-readme.sh migrate-terraform.sh migrate-to-*.sh migration/
mv collect-*.sh metrics/collect/
mv track-*.sh update-metrics.sh generate-metrics-report.sh metrics/
mv *dbis*.sh dbis/
mv setup*.sh infrastructure/
mv analyze-costs.sh optimize-builds.sh deps-*.sh build-all.sh test-all.sh verify-all.sh cleanup.sh utils/
Add Library to Script
Add after shebang:
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
source "$SCRIPT_DIR/../lib/init.sh"
Make Executable
find scripts -name "*.sh" -exec chmod +x {} \;
File Locations
Libraries
lib/common/colors.shlib/common/logging.shlib/common/utils.shlib/common/validation.shlib/common/error-handling.shlib/config/env.shlib/init.sh
Script Categories
- Migration:
migration/ - Metrics:
metrics/andmetrics/collect/ - DBIS:
dbis/ - Infrastructure:
infrastructure/ - Utilities:
utils/
Documentation
- Full Plan:
NEXT_STEPS_DETAILED.md - Checklist:
IMPLEMENTATION_CHECKLIST.md - Evaluation:
SCRIPTS_EVALUATION_REPORT.md