summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorDominick Allen <djallen@librehumanitas.org>2024-09-25 10:53:18 -0500
committerDominick Allen <djallen@librehumanitas.org>2024-09-25 10:53:18 -0500
commitb6e3cc840e255b78ee53e55b420aeee130e51ce1 (patch)
treea1cc9b47bb2858710358269059afd43808ca36cc /src/main.cpp
parent348a1bfb244288b1c78d8ce3c8d8a8cb5c1bdebc (diff)
Work on wrapping types.
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp11
1 files changed, 11 insertions, 0 deletions
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 <libfud.hpp>
+
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();
}