Use statically linked spdlog over system spdlog/libfmt
Some checks failed
Build ptprnt / build (push) Failing after 2m28s

This commit is contained in:
2025-10-19 11:50:43 +02:00
parent 8865117c49
commit 6f9bb54611
9 changed files with 237 additions and 27 deletions

View File

@@ -18,7 +18,8 @@
*/
#include "PtouchPrint.hpp"
#include <fmt/core.h>
#include <format>
#include <iostream>
#include <spdlog/sinks/basic_file_sink.h>
#include <spdlog/sinks/stdout_color_sinks.h>
#include <spdlog/spdlog.h>
@@ -104,11 +105,11 @@ bool PtouchPrint::handleListDrivers() {
auto driverFactory = std::make_unique<PrinterDriverFactory>();
auto drivers = driverFactory->listAllDrivers();
fmt::print("Available printer drivers:\n");
std::cout << "Available printer drivers:\n";
for (const auto& driver : drivers) {
fmt::print(" - {}\n", driver);
std::cout << std::format(" - {}\n", driver);
}
fmt::print("\nUse with: -p <driver_name> or --printer <driver_name>\n");
std::cout << "\nUse with: -p <driver_name> or --printer <driver_name>\n";
return true;
}