Add a short description and intention

This commit is contained in:
Eugen Wissner 2025-05-02 15:26:32 +02:00
parent 933f4bb481
commit 692edeb8e1
Signed by: belka
GPG Key ID: A27FDC1E8EE902C0
11 changed files with 65 additions and 1 deletions

View File

@ -1,3 +1,7 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# 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/.
cmake_minimum_required(VERSION 3.21) cmake_minimum_required(VERSION 3.21)
project(Katja) project(Katja)

View File

@ -1,3 +1,13 @@
# katja
This is an ongoing effort to create a package management library
for Slackware Linux. The purpose of the library is to provide an
interface between different kinds of Slackware repository formats
and console or graphical user interfaces.
To test the functionality there is also a text user interface
implementation, that exposes the library to a user.
## Build instructions ## Build instructions
```sh ```sh
@ -9,3 +19,10 @@ Pass `-DCMAKE_BUILD_TYPE=Debug` or `-DCMAKE_BUILD_TYPE=Release` to
`cmake` to select the according build configuration. `cmake` to select the according build configuration.
This builds a CLI that can be then found in `./build/bin/katja`. This builds a CLI that can be then found in `./build/bin/katja`.
## Project structure
The library code is in `katja/`. Public headers are under `include/`.
Finally the optional UI implementation is under `cli/`. There are
also some tests in the appropriate directory. There are
also some tests in the appropriate directory.

View File

@ -1,6 +1,10 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# 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/.
FetchContent_Declare(ftxui FetchContent_Declare(ftxui
GIT_REPOSITORY https://github.com/ArthurSonzogni/ftxui GIT_REPOSITORY https://github.com/ArthurSonzogni/ftxui
GIT_TAG v6.0.2 GIT_TAG v6.1.8
GIT_PROGRESS TRUE GIT_PROGRESS TRUE
GIT_SHALLOW TRUE GIT_SHALLOW TRUE
EXCLUDE_FROM_ALL EXCLUDE_FROM_ALL

View File

@ -1,3 +1,8 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* 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/.
*/
#include "component.hpp" #include "component.hpp"
#include <sstream> #include <sstream>

View File

@ -1,3 +1,8 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* 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/.
*/
#pragma once #pragma once
#include <optional> #include <optional>

View File

@ -1,3 +1,8 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* 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/.
*/
#include <filesystem> #include <filesystem>
#include <ftxui/component/screen_interactive.hpp> #include <ftxui/component/screen_interactive.hpp>

View File

@ -1,3 +1,8 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* 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/.
*/
#include "page.hpp" #include "page.hpp"
#include <algorithm> #include <algorithm>

View File

@ -1,3 +1,8 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* 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/.
*/
#pragma once #pragma once
#include <ftxui/component/event.hpp> #include <ftxui/component/event.hpp>

View File

@ -1,3 +1,7 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# 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/.
find_package(Boost CONFIG COMPONENTS unit_test_framework REQUIRED) find_package(Boost CONFIG COMPONENTS unit_test_framework REQUIRED)
file(GLOB KATJA_TEST_SOURCES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.cpp) file(GLOB KATJA_TEST_SOURCES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.cpp)

View File

@ -1,3 +1,8 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* 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/.
*/
#define BOOST_TEST_MODULE database tests #define BOOST_TEST_MODULE database tests
#include <boost/test/unit_test.hpp> #include <boost/test/unit_test.hpp>

View File

@ -1,3 +1,8 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* 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/.
*/
#define BOOST_TEST_MODULE repository tests #define BOOST_TEST_MODULE repository tests
#include <boost/test/unit_test.hpp> #include <boost/test/unit_test.hpp>