Add version output to the "repl" command

refs #7805
This commit is contained in:
Gunnar Beutner 2014-12-16 10:36:59 +01:00
parent 23a556c7ce
commit 27db75fbe6
1 changed files with 3 additions and 0 deletions

View File

@ -22,6 +22,7 @@
#include "config/configcompilercontext.hpp"
#include "base/json.hpp"
#include "base/console.hpp"
#include "base/application.hpp"
#include <iostream>
using namespace icinga;
@ -65,6 +66,8 @@ int ReplCommand::Run(const po::variables_map& vm, const std::vector<std::string>
std::map<String, String> lines;
int next_line = 1;
std::cout << "Icinga (version: " << Application::GetVersion() << ")\n";
while (std::cin.good()) {
String fileName = "<" + Convert::ToString(next_line) + ">";
next_line++;