Use statically linked spdlog over system spdlog/libfmt
Some checks failed
Build ptprnt / build (push) Failing after 2m28s
Some checks failed
Build ptprnt / build (push) Failing after 2m28s
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user