#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"); std::multimap 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() }; katja::sbo_repository repository{ slackbuild_repository }; auto updates = repository.get_updates(installed_database); auto screen = ftxui::ScreenInteractive::Fullscreen(); auto container = std::make_shared(std::vector>{ { "Home", std::make_shared() }, { "Updates", std::make_shared(std::move(updates)) }, { "Search", std::make_shared() } }); container->on_enter = screen.ExitLoopClosure(); screen.Loop(container); } return EXIT_SUCCESS; }