remove-dependencies (#20)
All checks were successful
Build ptprnt / build (push) Successful in 2m10s

Reviewed-on: #20
This commit was merged in pull request #20.
This commit is contained in:
2025-10-19 11:35:00 +00:00
parent 8865117c49
commit d8467b8984
12 changed files with 494 additions and 104 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;
}