SlHelpers
Loading...
Searching...
No Matches
SlKernCVS::RPMConfig Class Reference

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.

Detailed Description

Parse rpm/config.sh into a map of key -> value.


The documentation for this class was generated from the following file:
  • /home/abuild/rpmbuild/BUILD/slhelpers-20260428.f233ce9-build/slhelpers-20260428.f233ce9/include/kerncvs/RPMConfig.h