2021-08-23 16:53:26 +02:00
|
|
|
#ifndef CPPSCRIPTS_HELPERS_HPP
|
|
|
|
#define CPPSCRIPTS_HELPERS_HPP
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <string_view>
|
|
|
|
|
|
|
|
namespace helpers
|
|
|
|
{
|
|
|
|
|
2021-08-24 21:39:47 +02:00
|
|
|
//! returns environment variable or empty string.
|
2021-08-23 16:53:26 +02:00
|
|
|
std::string get_env(std::string_view name);
|
|
|
|
|
2021-08-24 21:39:47 +02:00
|
|
|
//! Returns the full path for a config file.
|
|
|
|
std::string get_config_file_path(std::string_view filename);
|
|
|
|
|
2021-08-23 16:53:26 +02:00
|
|
|
} // namespace helpers
|
|
|
|
|
|
|
|
#endif // CPPSCRIPTS_HELPERS_HPP
|