first commit

This commit is contained in:
2026-01-12 11:28:31 -06:00
commit 66463236cc
6 changed files with 156 additions and 0 deletions

24
main.cpp Normal file
View File

@@ -0,0 +1,24 @@
#include <expected>
#include <string>
#include <print>
#include "env.hpp"
using std::unexpected;
using std::expected;
using std::println;
using std::string;
int main() {
Env env;
env.loadEnv("");
expected<string, string> result = env.get("FIRST");
if (!result.has_value()) {
println("{}", result.error());
return 1;
}
println("{}", result.value());
return 0;
}