56 lines
1.3 KiB
Markdown
56 lines
1.3 KiB
Markdown
# 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
|
|
```bash
|
|
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:
|
|
```bash
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
source "$SCRIPT_DIR/../lib/init.sh"
|
|
```
|
|
|
|
### Make Executable
|
|
```bash
|
|
find scripts -name "*.sh" -exec chmod +x {} \;
|
|
```
|
|
|
|
## File Locations
|
|
|
|
### Libraries
|
|
- `lib/common/colors.sh`
|
|
- `lib/common/logging.sh`
|
|
- `lib/common/utils.sh`
|
|
- `lib/common/validation.sh`
|
|
- `lib/common/error-handling.sh`
|
|
- `lib/config/env.sh`
|
|
- `lib/init.sh`
|
|
|
|
### Script Categories
|
|
- Migration: `migration/`
|
|
- Metrics: `metrics/` and `metrics/collect/`
|
|
- DBIS: `dbis/`
|
|
- Infrastructure: `infrastructure/`
|
|
- Utilities: `utils/`
|
|
|
|
## Documentation
|
|
- Full Plan: `NEXT_STEPS_DETAILED.md`
|
|
- Checklist: `IMPLEMENTATION_CHECKLIST.md`
|
|
- Evaluation: `SCRIPTS_EVALUATION_REPORT.md`
|