aboutsummaryrefslogtreecommitdiff
path: root/cli/main.cpp
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2025-03-06 22:20:38 +0100
committerEugen Wissner <belka@caraus.de>2025-03-06 22:20:38 +0100
commit2d2b8c266ef6aac30505a6e76f31719e618a2387 (patch)
tree085fa8a4cd788f533f0de99ca4073cba888a6a0a /cli/main.cpp
parent26fc7c0bd6237e69c452961cb7ad72ae219db54d (diff)
downloadkazbek-2d2b8c266ef6aac30505a6e76f31719e618a2387.tar.gz
Add slackware package database parser
Diffstat (limited to 'cli/main.cpp')
-rw-r--r--cli/main.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/cli/main.cpp b/cli/main.cpp
new file mode 100644
index 0000000..2c6ab3b
--- /dev/null
+++ b/cli/main.cpp
@@ -0,0 +1,14 @@
+#include <filesystem>
+#include <iostream>
+#include "katja/database.hpp"
+
+int main()
+{
+ for (const auto& entry : std::filesystem::directory_iterator(katja::database))
+ {
+ katja::database_package database_entry{ entry.path().filename() };
+
+ std::cout << database_entry.to_string() << std::endl;
+ }
+ return 0;
+}