// Aseprite
// Copyright (C) 2001-2015  David Capello
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
// published by the Free Software Foundation.

#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

#include "app/shell.h"

#include "scripting/engine.h"

#include <iostream>
#include <string>

namespace app {

Shell::Shell()
{
}

Shell::~Shell()
{
}

void Shell::run(scripting::Engine& engine)
{
  std::cout << "Welcome to " PACKAGE " v" VERSION " interactive console" << std::endl;
  std::string line;
  while (std::getline(std::cin, line)) {
    engine.eval(line);
  }
  std::cout << "Done\n";
}

} // namespace app
