Expand description
Sync Command - The ONLY command in ggen v5
ggen sync is the unified code synchronization pipeline that replaces ALL
previous ggen commands. It transforms domain ontologies through inference
rules into typed code via Tera templates.
§Architecture: Three-Layer Pattern
- Layer 3 (CLI): Input validation, output formatting, thin routing
- Layer 2 (Integration): Async execution, error handling
- Layer 1 (Domain): Pure generation logic from ggen_core::codegen
§Exit Codes
| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | Manifest validation error |
| 2 | Ontology load error |
| 3 | SPARQL query error |
| 4 | Template rendering error |
| 5 | File I/O error |
| 6 | Timeout exceeded |
Structs§
- Sync
Output - Output for the
ggen synccommand - Synced
File - Individual file sync result
Functions§
- sync
- Execute the complete code synchronization pipeline from a ggen.toml manifest.