From 6bc051312455e35d55e059b14700f496b2177413 Mon Sep 17 00:00:00 2001 From: pupbrained Date: Mon, 12 May 2025 02:16:02 -0400 Subject: [PATCH] mrow --- src/main.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index ba91f01..09e3f4a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -45,14 +45,14 @@ fn main(const i32 argc, char* argv[]) -> i32 try { return EXIT_FAILURE; } - bool verbose = parser.get("-V").value_or(false) || parser.get("--verbose").value_or(false); - Result logLevelStr = verbose ? "debug" : parser.get("--log-level"); - { using matchit::match, matchit::is, matchit::_; using util::logging::LogLevel; using enum util::logging::LogLevel; + bool verbose = parser.get("-V").value_or(false) || parser.get("--verbose").value_or(false); + Result logLevelStr = verbose ? "debug" : parser.get("--log-level"); + LogLevel minLevel = match(logLevelStr)( is | "debug" = Debug, is | "info" = Info, @@ -69,11 +69,10 @@ fn main(const i32 argc, char* argv[]) -> i32 try { } } - const Config& config = Config::getInstance(); - - const os::SystemData data = os::SystemData(config); - { + const Config& config = Config::getInstance(); + const os::SystemData data = os::SystemData(config); + using ftxui::Element, ftxui::Screen, ftxui::Render; using ftxui::Dimension::Full, ftxui::Dimension::Fit;