Module executor

Module executor 

Source
Expand description

Sync Executor - Domain logic for ggen sync command

This module contains the business logic for the sync pipeline, extracted from the CLI layer to maintain separation of concerns.

The executor handles:

  • Manifest parsing and validation
  • Validate-only mode
  • Dry-run mode
  • Full sync pipeline execution

§Architecture

The CLI verb function should be thin (complexity <= 5):

  1. Parse CLI args into SyncOptions
  2. Call SyncExecutor::execute(options)
  3. Return result

All business logic lives here in the executor.

Structs§

SyncExecutor
Executes the sync pipeline with given options
SyncResult
Result of sync execution - returned to CLI layer
SyncedFileInfo
Individual file info in sync result
ValidationCheck
Validation check result