Compare commits

..

No commits in common. "4fab2595bc8895307b12aa086f5a24440b0b1e13" and "363ce6a5db5af77d021ec1759e08abde32dff104" have entirely different histories.

5 changed files with 1600 additions and 1536 deletions

View File

@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.20) cmake_minimum_required(VERSION 3.20)
include(cmake/color.cmake) include(cmake/color.cmake)
set(BLT_VERSION 5.2.22) set(BLT_VERSION 5.2.16)
set(BLT_TARGET BLT) set(BLT_TARGET BLT)

View File

@ -394,7 +394,7 @@ namespace blt::argparse
return std::get<std::string>(m_data.at(key)); return std::get<std::string>(m_data.at(key));
} }
[[nodiscard]] bool contains(const std::string_view key) const bool contains(const std::string_view key)
{ {
return m_data.find(key) != m_data.end(); return m_data.find(key) != m_data.end();
} }

@ -1 +1 @@
Subproject commit 93201da2ba5a6aba0a6e57ada64973555629b3e3 Subproject commit 7ef2e733416953b222851f9a360d7fc72d068ee5

View File

@ -138,7 +138,7 @@ namespace blt::logging
std::string output = "["; std::string output = "[";
output.reserve(max_printed_length); output.reserve(max_printed_length);
const auto amount_filled = (max_printed_length - 2) * m_progress; const auto amount_filled = (max_printed_length - 2) * m_progress;
auto amount_filled_int = static_cast<i32>(amount_filled); auto amount_filled_int = static_cast<i64>(amount_filled);
const auto frac = amount_filled - static_cast<double>(amount_filled_int); const auto frac = amount_filled - static_cast<double>(amount_filled_int);
for (i64 i = 0; i < amount_filled_int; i++) for (i64 i = 0; i < amount_filled_int; i++)
@ -157,8 +157,6 @@ namespace blt::logging
void status_progress_bar_t::set_progress(const double progress) void status_progress_bar_t::set_progress(const double progress)
{ {
if (std::isnan(progress) || progress < 0 || progress > 1 || std::isinf(progress))
throw std::invalid_argument("Progress must be between 0 and 1 (got: " + std::to_string(progress) + ")");
m_progress = progress; m_progress = progress;
// m_status->redraw(); // m_status->redraw();
} }
@ -210,6 +208,6 @@ namespace blt::logging
status_bar_t::~status_bar_t() status_bar_t::~status_bar_t()
{ {
std::cout << ansi::cursor::show_cursor << std::flush; std::cout << ansi::cursor::show_cursor;
} }
} }

File diff suppressed because it is too large Load Diff