diff options
| author | Eugen Wissner <belka@caraus.de> | 2026-01-06 11:12:50 +0100 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2026-01-06 11:12:50 +0100 |
| commit | dd97107aa81e1137c80602c044b3805bf4ffda56 (patch) | |
| tree | 5b7d3449bfc6963a0f33ee5cb6827faa8424e763 /cli | |
| parent | 8f0a4b9f36046b41a66db599e4e925386c48d049 (diff) | |
| download | katja-dd97107aa81e1137c80602c044b3805bf4ffda56.tar.gz | |
Switch to using modules in the library
Diffstat (limited to 'cli')
| -rw-r--r-- | cli/component.cpp | 4 | ||||
| -rw-r--r-- | cli/main.cpp | 11 | ||||
| -rw-r--r-- | cli/page.cpp | 7 |
3 files changed, 13 insertions, 9 deletions
diff --git a/cli/component.cpp b/cli/component.cpp index b33be7a..6735077 100644 --- a/cli/component.cpp +++ b/cli/component.cpp @@ -12,9 +12,9 @@ module; #include <ftxui/component/component.hpp> #include <ftxui/dom/elements.hpp> -#include "katja/repository.hpp" +import katja.repository; -export module component; +export module katja.component; export namespace katja { diff --git a/cli/main.cpp b/cli/main.cpp index d0bf8b7..5502800 100644 --- a/cli/main.cpp +++ b/cli/main.cpp @@ -3,17 +3,20 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ +module; + #include <filesystem> +#include <memory> #include <ftxui/component/screen_interactive.hpp> #include <ftxui/dom/elements.hpp> #include <ftxui/component/component.hpp> #include <toml.hpp> -#include "katja/sbo.hpp" -#include "katja/database.hpp" - -import page; +import katja.database; +import katja.repository; +import katja.sbo; +import katja.page; int main(int argc, const char **argv) { diff --git a/cli/page.cpp b/cli/page.cpp index 617ee07..44b7e73 100644 --- a/cli/page.cpp +++ b/cli/page.cpp @@ -9,11 +9,12 @@ module; #include <ftxui/component/component.hpp> -#include "katja/repository.hpp" +import katja.database; +import katja.repository; -export module page; +export module katja.page; -import component; +import katja.component; export namespace katja { |
