38 lines
579 B
C++
38 lines
579 B
C++
/**
|
|
* @file env.hpp
|
|
* @author Lewis Price (lewis.e.price@outlook.com)
|
|
* @brief A set of functions for reading/creating the .env file
|
|
* @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);
|
|
|