config Refactor | use rfl (Thanks to asesidaa)

This commit is contained in:
ptmaster
2025-01-23 23:43:38 +08:00
parent 7e7a9018db
commit a3631a8659
22 changed files with 1173 additions and 747 deletions
+21
View File
@@ -0,0 +1,21 @@
#include <string>
#include <iostream>
#include "config.h"
int main(int argc, char **argv) {
if (argc < 2) {
std::cerr << "Usage: " << argv[0] << " <config file>" << std::endl;
return 1;
}
std::string fullPath = argv[1];
if (!Config::ConfigManager::validateConfigfile(fullPath)) {
std::cerr << "Config file is invalid" << std::endl;
return 1;
}
std::cout << "Config file is valid" << std::endl;
return 0;
}