gmuse.cli.config_resolution#
Shared CLI configuration loading helpers.
This module centralizes the common load, merge, and optional validation behavior used by the CLI entrypoints while allowing each command to keep its own failure policy.
Module Contents#
Functions#
Load, merge, and optionally validate CLI configuration. |
API#
- gmuse.cli.config_resolution.resolve_config(cli_args: Optional[gmuse.config.ConfigDict] = None, *, tolerate_load_errors: bool = False, validate: bool = False) gmuse.config.ConfigDict#
Load, merge, and optionally validate CLI configuration.
Args: cli_args: Command-specific CLI overrides. tolerate_load_errors: If True, unreadable config files fall back to an empty config instead of raising. validate: If True, validate the merged config before returning it.
Returns: The merged configuration dictionary.