forked from zephyrproject-rtos/west
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
configuration: add Configuration class
This is a high-level class that lets you load and interact with the configuration files in an object-oriented way. It's similar to how west.manifest.Manifest lets you interact with the manifest, but for configuration files. The new API uses 'config.get("some.option")' style methods instead of the configparser style 'config.get("some", "option")' with a separated section and key. This makes the code match the options as they are documented, making it easier to read and grep for. Having an object around will allow us to deprecate the current implementation, which relies on global state. It will also make it easier to override default configuration behavior in certain circumstances that will be useful in later patches. Part of the road towards resolving zephyrproject-rtos#149 and at least one other issue. Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
- Loading branch information
1 parent
ba0fbec
commit 7330c96
Showing
1 changed file
with
337 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters