class

Cl8r::Config::Manager

Inherits Reference < Object

Manages loading, saving, and atomic persistence of configuration settings.

Class methods

current

Retrieves the active cached configuration, loading from disk if not yet initialized.

Source
get(key : String) : String

Gets the current value of a configuration key.

Source
load

Loads configuration from active config file or returns defaults.

Source
reset!

Resets the in-memory cache (primarily used for test isolation).

Source
save!(schema : Schema, target_file : String = Paths.user_config_file) : Nil

Persists configuration atomically to the user's configuration file.

Source
set(key : String, value : String, target_file : String = Paths.user_config_file) : Schema

Sets a configuration key and saves it immediately to disk.

Source
unset(key : String, target_file : String = Paths.user_config_file) : Schema

Resets a configuration key to its default value and persists to disk.

Source