public void StartReadingCommands()
        {
            string input = Console.ReadLine();

            while (input != endCommand)
            {
                interpreter.InterpretCommand(input);
                OutputWriter.WriteMessage($"{SessionData.currentPath}>");
                input = Console.ReadLine();
                input = input.Trim();
            }
        }
Пример #2
0
        public static void StartReadingCommands()
        {
            while (true)
            {
                OutputWriter.WriteMessage($"{SessionData.currentPath}> ");
                string input = Console.ReadLine();
                if (input.Equals(EndCommand))
                {
                    break;
                }

                input = input.Trim();
                CommandInterpreter.InterpretCommand(input);
            }
        }