Module ConfigurationProvider

Module ConfigurationProvider 

Source
Expand description

§ConfigurationProvider (Environment)

Implements ConfigurationProvider and ConfigurationInspector traits, managing all application settings across multiple scopes (Default, User, Workspace, Folder). It handles the configuration cascade, merging settings from various sources in the correct precedence order.

§Implementation Strategy

The trait implementation is split across multiple helper modules for maintainability:

  • GetValue: GetConfigurationValue - retrieval from merged cache
  • UpdateValue: UpdateConfigurationValue - persistence and re-merge
  • InspectValue: InspectConfigurationValue - introspection across scopes
  • Loading: ReadAndParseConfigurationFile, InitializeAndMergeConfigurations

The single impl ConfigurationProvider for MountainEnvironment block in this file delegates to those helper functions. This satisfies Rust’s orphan rules while keeping code organized.

Modules§

GetValue 🔒
Configuration value retrieval.
InspectValue 🔒
Configuration value introspection.
Loading
Configuration loading and merging utilities.
UpdateValue 🔒
Configuration value update and persistence.