|
SlHelpers
|
Parse rpm/config.sh into a map of key -> value. More...
#include <RPMConfig.h>
Public Member Functions | |
| RPMConfig (std::string_view rpmConfig) noexcept | |
Create a new RPMConfig from the rpmConfig. | |
| bool | contains (std::string_view key) const noexcept |
Test whether key exists in the config. | |
| std::optional< std::reference_wrapper< const std::string > > | get (std::string_view key) const noexcept |
Find key in the config and return its value if found (or nullopt) | |
| const auto & | operator[] (std::string_view key) const noexcept |
Find key in the config and return its value. | |
Static Public Member Functions | |
| static std::optional< RPMConfig > | create (const SlGit::Tree &tree) noexcept |
Create a new RPMConfig from the tree. | |
| static std::optional< RPMConfig > | create (const SlGit::Repo &repo, const std::string &branch) noexcept |
Create a new RPMConfig from the branch in the repo. | |
Parse rpm/config.sh into a map of key -> value.