Esempio n. 1
0
        private void Loop()
        {
            string commandLine = ReadCommand();

            try {
                Command command = parser.Parse(commandLine);
                string  message = command.Run();
                ShowMessage(message);
            } catch (Exception e) {
                ShowMessage("Oops something went wrong...");
                ShowMessage(e.Message);
            } finally {
                ShowPrompt();
            }
        }