Module sync

Module sync 

Source
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

CodeMeaning
0Success
1Manifest validation error
2Ontology load error
3SPARQL query error
4Template rendering error
5File I/O error
6Timeout exceeded

Structs§

SyncOutput
Output for the ggen sync command
SyncedFile
Individual file sync result

Functions§

sync
Execute the complete code synchronization pipeline from a ggen.toml manifest.