From b6e3cc840e255b78ee53e55b420aeee130e51ce1 Mon Sep 17 00:00:00 2001 From: Dominick Allen Date: Wed, 25 Sep 2024 10:53:18 -0500 Subject: Work on wrapping types. --- src/main.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index d172586..50ddd7e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3,11 +3,14 @@ #include "bookmouse.hpp" +#include + void setupLogging() { spdlog::cfg::load_env_levels(); spdlog::set_pattern("[%H:%M:%S %z] [%^%L%$] [thread %t] %v"); + spdlog::set_level(spdlog::level::debug); } int main(int argc, char* argv[]) @@ -17,6 +20,14 @@ int main(int argc, char* argv[]) setupLogging(); + auto result = fud::getEnv("HOME"); + if (result.isError()) { + spdlog::error("Error getting home variable"); + } else { + auto home = result.getOkay(); + spdlog::info("Home is {}", home.c_str()); + } + bookmouse::Bookmouse bookmouse{}; return bookmouse.run(); } -- cgit v1.2.3