2022-05-26 21:32:04 +02:00
|
|
|
#include "CommandlineInterface.h"
|
|
|
|
#include "Configuration.h"
|
2022-05-27 16:44:42 +02:00
|
|
|
#include "KeyManager.h"
|
2022-05-27 17:17:43 +02:00
|
|
|
#include "ModuleGenerateKey.h"
|
2022-05-26 21:32:04 +02:00
|
|
|
|
2022-05-27 18:26:48 +02:00
|
|
|
#include "DataIngestionLayer.h"
|
|
|
|
|
2022-05-26 21:32:04 +02:00
|
|
|
int main(int argc, char* const* argv) {
|
|
|
|
|
|
|
|
// Init cli args
|
|
|
|
CommandlineInterface::Init(argc, argv);
|
|
|
|
|
|
|
|
// Parse configuration
|
|
|
|
Configuration::Parse();
|
|
|
|
|
2022-05-26 21:56:15 +02:00
|
|
|
// Prepare the key
|
2022-05-27 16:44:42 +02:00
|
|
|
KeyManager::PrepareKey();
|
2022-05-26 21:56:15 +02:00
|
|
|
|
2022-05-27 18:26:48 +02:00
|
|
|
IO::DataIngestionLayer::Init();
|
|
|
|
|
2022-05-27 17:04:16 +02:00
|
|
|
// Launch our module
|
|
|
|
switch (Configuration::activeModule) {
|
2022-05-27 17:17:43 +02:00
|
|
|
case Configuration::MODULE::GENERATE_KEY:
|
|
|
|
Module::GenerateKey::Run();
|
2022-05-27 17:04:16 +02:00
|
|
|
}
|
|
|
|
|
2022-05-26 21:32:04 +02:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|