#include #include #include #include #include "katja/sbo.hpp" #include "katja/database.hpp" #include "component.hpp" int main(int argc, const char **argv) { auto configuration = toml::parse("config/katja.toml"); katja::package_database installed_database = katja::read_installed_database(); for (const auto& [repository_name, repository_value] : configuration.as_table()) { std::filesystem::path slackbuild_repository{ repository_value.at("path").as_string() }; auto repository = std::make_shared(slackbuild_repository); auto screen = ftxui::ScreenInteractive::Fullscreen(); auto container = Screen(std::vector>{ { "Home", ftxui::Make() }, { "Updates", ftxui::Make(repository, std::move(installed_database)) }, { "Search", ftxui::Make(repository, "x86-64") } }, screen.ExitLoopClosure()); screen.Loop(container); } return EXIT_SUCCESS; }