--- a/src/relpipe-out-chart.cpp Mon Sep 24 13:47:02 2018 +0200
+++ b/src/relpipe-out-chart.cpp Mon Sep 24 13:59:06 2018 +0200
@@ -1,7 +1,22 @@
#include <iostream>
+#include <relpipe/cli/CLI.h>
+#include <relpipe/cli/RelpipeCLIException.h>
+#include <relpipe/reader/Factory.h>
+#include <relpipe/reader/RelationalReader.h>
+#include <relpipe/reader/RelpipeReaderException.h>
+
+
+using namespace relpipe::cli;
+using namespace relpipe::reader;
+
int main(int argc, char**argv) {
+ CLI cli(argc, argv);
std::cout << "TODO: relpipe-out-chart..." << std::endl;
- // char * x = new char[1000]; // simulate a memory leak and test that ASan is working
- return 0;
+
+ std::shared_ptr<RelationalReader> reader(Factory::create(std::cin));
+
+ int resultCode = CLI::EXIT_CODE_UNEXPECTED_ERROR;
+
+ return resultCode;
}