Manages loading, saving, and atomic persistence of configuration settings.
Class methods
current
Retrieves the active cached configuration, loading from disk if not yet initialized.
SourceGets the current value of a configuration key.
Sourceload
Loads configuration from active config file or returns defaults.
Sourcereset!
Resets the in-memory cache (primarily used for test isolation).
Sourcesave!(schema :
Schema, target_file :
String =
Paths.user_config_file) :
Nil Persists configuration atomically to the user's configuration file.
SourceSets a configuration key and saves it immediately to disk.
Sourceunset(key :
String, target_file :
String =
Paths.user_config_file) :
Schema Resets a configuration key to its default value and persists to disk.
Source