reci.adapters.base
ConfigAdapter protocol — interface for reading/writing CI config.
Classes
ConfigAdapter(*args, **kwargs)
|
Protocol for pluggable CI config I/O. |
-
class reci.adapters.base.ConfigAdapter(*args, **kwargs)[source]
Bases: Protocol
Protocol for pluggable CI config I/O.
-
default_path()[source]
Return the default filename for this adapter.
- Return type:
str
-
read(path)[source]
Read config from a file and return a flat dict.
- Return type:
dict[str, Any]
-
write(path, config)[source]
Write config to a file, preserving existing content.
- Return type:
None