| 124 | } |
| 125 | |
| 126 | void copy(std::string src, std::string dest, bool isRecursive) { |
| 127 | std::string command = "cp "; |
| 128 | command += (isRecursive ? "-r " : "") + src + " " + dest; |
| 129 | std::cout << "[COMMAND] " << command << "\n"; |
| 130 | auto Ret = system(command.c_str()); |
| 131 | assert(Ret == 0 && "copy failed"); |
| 132 | } |
| 133 | |
| 134 | Json::Value parseJsonFileToJsonValue(const char *jsonPath) { |
| 135 | std::string configDoc = readFile(jsonPath); |
no outgoing calls