Skip to main content

Module app_yaml_existing

Module app_yaml_existing 

Source
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: and region: are only recognized at column 0 (no leading whitespace). Service-level or worker-level name: / region: keys are indented and therefore ignored.
  • repo: and branch: accept any indentation. In the scaffolder-emitted template they only appear under services[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§

PreservedAppYamlIdentity
Identity fields from an existing .do/app.yaml that should be preserved when re-rendering via do:init --force.

Functions§

parse_existing
Read identity fields from an existing .do/app.yaml.