1) First draft of the TUI functionality

2) Added env_reader functions (env.hpp and env.cpp)
3) Program looks for a .env on startup and creates one based on user input if not found.
4) Refactored log_parsing and ip_to_geo to use the global env variables for parsing and ip lookup from the local .mmdb database
5) CMakeLists.txt is now cross platform functional
6) Added various cross platform checks for creating .env variables
This commit is contained in:
rapturate
2026-06-09 14:29:42 -04:00
parent bdaf8451a0
commit 42f50c9e9a
9 changed files with 537 additions and 62 deletions

37
env_reader/env.hpp Normal file
View File

@@ -0,0 +1,37 @@
/**
* @file env.hpp
* @author Lewis Price (lewis.e.price@outlook.com)
* @brief
* @version 1.0.0
* @date 2026-06-09
*
* @copyright Copyright (c) 2026
*
*/
#pragma once
#include <string>
/**
* @brief Checks for an already existing .env file.
*
* @return true
* @return false
*/
bool check_for_env();
/**
* @brief Creates a new .env file for the user.
*
*/
void make_env();
/**
* @brief Loads the .env file information
*
* @param env_path
*/
void load_env_file(const std::string& env_path);