Refactor ManageResults and CommandParser

This commit is contained in:
2023-10-22 20:03:34 +02:00
parent 080eddf9cd
commit 26b649ebae
12 changed files with 405 additions and 263 deletions

View File

@@ -13,17 +13,6 @@ namespace platform {
class DotEnv {
private:
std::map<std::string, std::string> env;
std::string trim(const std::string& str)
{
std::string result = str;
result.erase(result.begin(), std::find_if(result.begin(), result.end(), [](int ch) {
return !std::isspace(ch);
}));
result.erase(std::find_if(result.rbegin(), result.rend(), [](int ch) {
return !std::isspace(ch);
}).base(), result.end());
return result;
}
public:
DotEnv()
{