components/flutterstart_cli/src/mode/config_file library

Functions

parseConfigFile(String yamlSource, {required Catalog catalog, required RecipeLock lock}) Blueprint
Reads a versioned YAML --config into the same v3 Blueprint the interactive configurator produces (FR-043, FR-044, contracts/config-file-schema.md). A pure function of explicit inputs only — no path may inject a hidden default the other cannot express (tension 2, CF-1/INV-NI1): flutterSdkRequirement is the one field neither path ever prompts for, so both derive it identically from lock, the same non-hidden, versioned source.

Exceptions / Errors

ConfigFileException
Structured error for an invalid/incomplete --config input — never a silent default (FR-045, SC-015, CF-2). exitCode is 2 for a malformed invocation (unparsable YAML) and 4 for an otherwise-invalid Blueprint, per contracts/exit-codes.md R2.