| 164 | } |
| 165 | |
| 166 | int uninstall_module(std::string module_name) { |
| 167 | auto module_path = module_root_path / ("Module_" + module_name); |
| 168 | if (!fs::exists(module_path) || !fs::is_directory(module_path)) { |
| 169 | BMFLOG(BMF_WARNING) |
| 170 | << "Module:" << module_name << " is not exist" << std::endl; |
| 171 | return -1; |
| 172 | } |
| 173 | fs::remove_all(module_path); |
| 174 | std::cout << "Uninstalling the module:" << module_name << " from " |
| 175 | << module_path << " success." << std::endl; |
| 176 | return 0; |
| 177 | } |
| 178 | |
| 179 | std::map<std::string, std::function<void()>> help_infos{ |
| 180 | {"help", |
no test coverage detected