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:
37
env_reader/env.hpp
Normal file
37
env_reader/env.hpp
Normal 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);
|
||||
|
||||
Reference in New Issue
Block a user