first commit
This commit is contained in:
15
include/env.hpp
Normal file
15
include/env.hpp
Normal file
@@ -0,0 +1,15 @@
|
||||
#pragma once
|
||||
|
||||
#include <expected>
|
||||
#include <string>
|
||||
#include <map>
|
||||
|
||||
class Env {
|
||||
public:
|
||||
Env();
|
||||
void loadEnv(const std::string& cwd);
|
||||
std::expected<std::string, std::string> get(const std::string& key);
|
||||
|
||||
private:
|
||||
std::map<std::string, std::string> map_;
|
||||
};
|
||||
Reference in New Issue
Block a user