sync
Description
Section titled “Description”sync updates managed regions only — router routes and DI registrations — without rewriting hand-authored code outside markers.
dart run stackchain sync [options]Options
Section titled “Options”| Option | Description |
|---|---|
--dry-run |
Preview merges |
--skip-analyze |
Skip analyze in gate |
Managed regions
Section titled “Managed regions”| Region ID | Typical file |
|---|---|
routes |
lib/app/router/… |
core |
lib/core/di/injection.dart |
features |
lib/core/di/injection.dart |
Markers look like:
// <stackchain:routes>// ... generated route table ...// </stackchain:routes>When routing: navigator, router file sync is skipped.
Examples
Section titled “Examples”dart run stackchain syncdart run stackchain sync --dry-run