#include <DaggyCore/Core.hpp>
#include <DaggyCore/Sources.hpp>
#include <DaggyCore/aggregators/CFile.hpp>
#include <DaggyCore/aggregators/CConsole.hpp>
#include <QCoreApplication>
constexpr const char* json_data = R"JSON(
"exec": "ping 127.0.0.1",
"exec": "ping 127.0.0.1",
int main(int argc, char** argv)
QCoreApplication app(argc, argv);
daggy::Core core(*daggy::sources::convertors::json(json_data));
daggy::aggregators::CFile file_aggregator("test");
daggy::aggregators::CConsole console_aggregator("test");
core.connectAggregator(&file_aggregator);
core.connectAggregator(&console_aggregator);
QObject::connect(&core, &daggy::Core::stateChanged, &core,
if(state == DaggyFinished)
QTimer::singleShot(3000, &core, [&]()
QTimer::singleShot(5000, &core, [&]()