Tie datastore to the interpreter

Change-Id: I943b071981aa0e16dcc32d1c87cebb15846f7d7e
diff --git a/src/main.cpp b/src/main.cpp
index 2358dff..73e39a6 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -11,6 +11,7 @@
 #include <iostream>
 #include "NETCONF_CLI_VERSION.h"
 #include "interpreter.hpp"
+#include "sysrepo_access.hpp"
 #include "yang_schema.hpp"
 
 
@@ -36,6 +37,8 @@
     auto yangschema = std::make_shared<YangSchema>();
     Parser parser(yangschema);
 
+    SysrepoAccess datastore("netconf-cli");
+
     for (auto it : args.at("<path-to-yang-schema>").asStringList()) {
         auto dir = std::experimental::filesystem::absolute(it).remove_filename();
         yangschema->addSchemaDirectory(dir.c_str());
@@ -51,7 +54,7 @@
 
         try {
             command_ cmd = parser.parseCommand(input, std::cout);
-            boost::apply_visitor(Interpreter(parser, *yangschema), cmd);
+            boost::apply_visitor(Interpreter(parser, datastore), cmd);
         } catch (InvalidCommandException& ex) {
             std::cerr << ex.what() << std::endl;
         }