2) Added Date/Time column 3) Fixed some spacing issues on standard column 4) Changed .env to lumberjack.config 5) Fixed the issue where the .env/lumberjack.config file was trunctated with bad file locations on start. 6) Updated env.hpp/.cpp to be config.hpp/.cpp and the parent directory to be config referencing.
38 lines
639 B
C++
38 lines
639 B
C++
/**
|
|
* @file config.hpp
|
|
* @author Lewis Price (lewis.e.price@outlook.com)
|
|
* @brief A set of functions for reading/creating the .config file
|
|
* @version 1.0.1
|
|
* @date 2026-06-09
|
|
*
|
|
* @copyright Copyright (c) 2026
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <string>
|
|
|
|
|
|
/**
|
|
* @brief Checks for an already existing lumberjack.config file.
|
|
*
|
|
* @return true
|
|
* @return false
|
|
*/
|
|
bool check_for_config();
|
|
|
|
/**
|
|
* @brief Creates a new lumberjack.config file for the user.
|
|
*
|
|
*/
|
|
void make_config();
|
|
|
|
/**
|
|
* @brief Loads the lumberjack.config file information
|
|
*
|
|
* @param config_path
|
|
*/
|
|
void load_config_file(const std::string& config_path);
|
|
|