1#include <base/logger.h>
2#include <base/system.h>
3#include <engine/shared/uuid_manager.h>
4int main(int argc, const char **argv)
5{
6 CCmdlineFix CmdlineFix(&argc, &argv);
7 log_set_global_logger_default();
8 if(argc != 2)
9 {
10 dbg_msg(sys: "usage", fmt: "uuid <NAME>");
11 return -1;
12 }
13 CUuid Uuid = CalculateUuid(pName: argv[1]);
14 char aBuf[UUID_MAXSTRSIZE];
15 FormatUuid(Uuid, pBuffer: aBuf, BufferLength: sizeof(aBuf));
16 dbg_msg(sys: "uuid", fmt: "%s", aBuf);
17 return 0;
18}
19