Skip to main content

Module config_store

Module config_store 

Source
Expand description

Plugin-namespaced configuration store for extensions.

Values are stored as simple key = value lines under ~/.synaps-cli/plugins/<plugin-id>/config (or the active test/profile base). This is intentionally separate from the global Synaps config so rich plugins can own their settings without colonizing the core keyspace.

Structs§

PluginConfigChange
A single plugin-config change event.

Functions§

plugin_config_path
Compute the on-disk config path for one plugin id.
read_plugin_config
Read one plugin-owned config value.
read_plugin_config_from
Read one plugin-owned config value from an explicit path (testable core).
subscribe_changes
Subscribe to changes for selected keys in a plugin config file.
subscribe_changes_at
Testable implementation of subscribe_changes for an explicit path.
write_plugin_config
Write one plugin-owned config value, preserving comments and unrelated keys.
write_plugin_config_to
Write one plugin-owned config value to an explicit path (testable core).