diff options
| author | Eugen Wissner <belka@caraus.de> | 2026-01-25 11:33:55 +0100 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2026-01-25 11:33:55 +0100 |
| commit | da02080fc1db3be9275832b7ad929165b1a38e3e (patch) | |
| tree | 7bf819a1ec95a079254a6894caa657f7bbd88ec4 /cli/configuration.cpp | |
| parent | c9a3ebd623bf2f968f7fbdf5bb2d7dda480b9f1c (diff) | |
| download | katja-da02080fc1db3be9275832b7ad929165b1a38e3e.tar.gz | |
Move more command line parsing into a module
Diffstat (limited to 'cli/configuration.cpp')
| -rw-r--r-- | cli/configuration.cpp | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/cli/configuration.cpp b/cli/configuration.cpp index 4ca36c1..e927c92 100644 --- a/cli/configuration.cpp +++ b/cli/configuration.cpp @@ -26,7 +26,13 @@ export namespace katja class configuration { public: - using repositories_t = std::forward_list<std::pair<std::string, repository_configuration>>; + using value_type = std::pair<std::string, repository_configuration>; + using reference_type = value_type&; + using const_reference_type = const value_type&; + + using repositories_t = std::forward_list<value_type>; + using size_type = repositories_t::size_type; + using difference_type = repositories_t::difference_type; private: repositories_t repositories; @@ -47,6 +53,16 @@ export namespace katja return this->repositories.end(); } + repositories_t::const_iterator begin() const + { + return this->repositories.begin(); + } + + repositories_t::const_iterator end() const + { + return this->repositories.end(); + } + repositories_t::const_iterator cbegin() { return this->repositories.cbegin(); |
