Open excel file automatically when generated

This commit is contained in:
2025-05-28 17:37:53 +02:00
parent dcde8c01be
commit 514968a082
11 changed files with 97 additions and 69 deletions

View File

@@ -4,6 +4,7 @@
#include "main/modelRegister.h"
#include "common/Paths.h"
#include "common/Colors.h"
#include "common/Utils.h"
#include "best/BestResults.h"
#include "common/DotEnv.h"
#include "config_platform.h"
@@ -80,6 +81,11 @@ int main(int argc, char** argv)
std::cout << Colors::GREEN() << fileName << " created!" << Colors::RESET() << std::endl;
results.reportSingle(excel);
}
if (excel) {
auto fileName = results.getExcelFileName();
std::cout << "Opening " << fileName << std::endl;
platform::openFile(fileName);
}
std::cout << Colors::RESET();
return 0;
}