load static method

FeatureFlagConfig load({
  1. String? projectRoot,
})

Load from .zfa.json at projectRoot (defaults to cwd). Returns an empty config when no file or no features section exists.

Implementation

static FeatureFlagConfig load({String? projectRoot}) {
  final raw = loadRawJson(projectRoot: projectRoot);
  if (raw == null) return FeatureFlagConfig(flags: const {});
  return FeatureFlagConfig.fromJson(raw);
}