remove-dependencies (#20)
All checks were successful
Build ptprnt / build (push) Successful in 2m10s
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:
@@ -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