Expand description
Parse identity fields from an existing .do/app.yaml for preservation
across do:init --force re-renders.
Uses a line scanner instead of serde_yaml — the field set is small
(four values) and the scaffolder emits a known, stable template shape.
If the preserved field set grows beyond four, migrate to serde_yaml.
§Disambiguation rules
name:andregion:are only recognized at column 0 (no leading whitespace). Service-level or worker-levelname:/region:keys are indented and therefore ignored.repo:andbranch:accept any indentation. In the scaffolder-emitted template they only appear underservices[0].github:, so an indented match is always the github binding.- When a key appears multiple times at the recognized indentation level, the first match is used. This matches what the scaffolder writes.
Structs§
- Preserved
AppYaml Identity - Identity fields from an existing
.do/app.yamlthat should be preserved when re-rendering viado:init --force.
Functions§
- parse_
existing - Read identity fields from an existing
.do/app.yaml.