yams/tools/yams-cli/main.cpp
2025-08-15 15:51:18 -04:00

18 lines
No EOL
446 B
C++

#include <spdlog/spdlog.h>
#include <yams/cli/yams_cli.h>
int main(int argc, char* argv[]) {
try {
// Set up logging
spdlog::set_level(spdlog::level::info);
spdlog::set_pattern("[%H:%M:%S] [%l] %v");
// Create and run CLI
yams::cli::YamsCLI cli;
return cli.run(argc, argv);
} catch (const std::exception& e) {
spdlog::error("Fatal error: {}", e.what());
return 1;
}
}