16 lines
296 B
C++
16 lines
296 B
C++
#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_;
|
|
};
|