eqemu-server/world/cli/cli_test_repository_2.cpp
2025-12-26 20:58:07 -08:00

25 lines
513 B
C++

#include "world/world_server_cli.h"
#include "common/repositories/zone_repository.h"
#include "world/worlddb.h"
void WorldserverCLI::TestRepository2(int argc, char **argv, argh::parser &cmd, std::string &description)
{
description = "Test command";
if (cmd[{"-h", "--help"}]) {
return;
}
auto zones = ZoneRepository::GetWhere(content_db, "short_name = 'anguish'");
for (auto &zone: zones) {
LogInfo(
"Zone [{}] long_name [{}] id [{}]",
zone.short_name,
zone.long_name,
zone.id
);
}
}