loadProjectWireDump function
Loads the PROJECT-level trajectory: section's wireDump flag from
<projectDir>/.fah/config.yaml (issue #385). Null when the file or the
section is absent/unreadable; a present-but-invalid section throws
ConfigException (strict, like the user config).
Implementation
bool? loadProjectWireDump(String projectDir) {
final file = File('$projectDir/.fah/config.yaml');
if (!file.existsSync()) return null;
try {
final doc = loadYaml(file.readAsStringSync());
if (doc is! YamlMap) return null;
final node = doc['trajectory'];
return node == null ? null : _parseTrajectorySection(node);
} on ConfigException {
rethrow;
} on Object {
return null;
}
}