style: run clang-format and configure pre-commit hooks

This commit is contained in:
AI-anonymous
2026-05-20 00:18:23 +02:00
parent 041eab7155
commit 3b15770437
28 changed files with 2226 additions and 2061 deletions

View File

@@ -1,34 +1,37 @@
#include "fces/telemetry.hpp"
#include <iostream>
#include <chrono>
#include <iostream>
namespace fces {
Telemetry& Telemetry::get() {
static Telemetry instance;
return instance;
Telemetry &Telemetry::get() {
static Telemetry instance;
return instance;
}
void Telemetry::info(const std::string& event, const std::string& detail) {
std::cout << "[INFO] " << event;
if (!detail.empty()) std::cout << " | " << detail;
std::cout << std::endl;
void Telemetry::info(const std::string &event, const std::string &detail) {
std::cout << "[INFO] " << event;
if (!detail.empty())
std::cout << " | " << detail;
std::cout << std::endl;
}
void Telemetry::warning(const std::string& event, const std::string& detail) {
std::cerr << "[WARN] " << event;
if (!detail.empty()) std::cerr << " | " << detail;
std::cerr << std::endl;
void Telemetry::warning(const std::string &event, const std::string &detail) {
std::cerr << "[WARN] " << event;
if (!detail.empty())
std::cerr << " | " << detail;
std::cerr << std::endl;
}
void Telemetry::error(const std::string& event, const std::string& detail) {
std::cerr << "[ERROR] " << event;
if (!detail.empty()) std::cerr << " | " << detail;
std::cerr << std::endl;
void Telemetry::error(const std::string &event, const std::string &detail) {
std::cerr << "[ERROR] " << event;
if (!detail.empty())
std::cerr << " | " << detail;
std::cerr << std::endl;
}
void Telemetry::push_to_remote() {
// TODO: Implement telemetry push (Git sync, file export, etc.)
// TODO: Implement telemetry push (Git sync, file export, etc.)
}
} // namespace fces
} // namespace fces