Files
harmony/harmony_config
Jean-Gabriel Gill-Couture 2f9fb83316
Some checks failed
Run Check Script / check (pull_request) Failing after 29s
feat(config): add named config instances API
Adds get_named/set_named/get_or_prompt_named to ConfigManager so
multiple instances of the same config type can coexist (e.g., separate
API credentials for primary and backup of a firewall pair).

Key format: {T::KEY}/{instance_name}. EnvSource maps slashes and
hyphens to underscores so the env var name remains valid (e.g.,
HARMONY_CONFIG_TestConfig_fw_primary). LocalFileSource creates
parent directories for nested keys.

The firewall_pair.rs TODO comment is updated to reference the new
API; the actual migration is deferred until Config is implemented
on the credential types.
2026-04-10 07:08:48 -04:00
..