From 59433ccaa6c9d3054507fbb84c53359e0bc02b8d Mon Sep 17 00:00:00 2001 From: lupey Date: Wed, 5 Aug 2026 22:26:20 -0500 Subject: [PATCH] i forgot --- CMakeLists.txt | 3 --- main.cpp | 6 +++--- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d2aed82..6b40d4d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,11 +3,8 @@ project(my_app) set(CMAKE_CXX_STANDARD 17) -# Find OpenSSL on the system find_package(OpenSSL REQUIRED) -# Define your executable add_executable(app main.cpp) -# Automatically link OpenSSL libraries (-lssl -lcrypto) target_link_libraries(app PRIVATE OpenSSL::SSL OpenSSL::Crypto) \ No newline at end of file diff --git a/main.cpp b/main.cpp index 4686106..5d28c8b 100644 --- a/main.cpp +++ b/main.cpp @@ -12,17 +12,17 @@ int main() { if (auto response = cli.Get("/users/" + usr +"/events", httplib::Headers{{"User-Agent", "higithub"}})) { nlohmann::json datas = nlohmann::json::parse(response->body); - std::cout << "Checking for" << usr << std::endl; + std::cout << "Checking for " << usr << std::endl; for (const auto& data : datas){ std::string type = data["type"]; std::string repo = data["repo"]["name"]; std::string date = data["created_at"]; - std::cout << "[" << date << "]" << type << " -> " << repo << std::endl; + std::cout << "[" << date << "] " << type << " -> " << repo << std::endl; } } else { - std::cout << "Request didnt work idk :(" << std::endl; + std::cout << "Request didnt work :(" << std::endl; } return 0; } \ No newline at end of file -- knotmirror 0.0.1