public static void StartReadingCommands() { OutputWriter.WriteMessage($"{SessionData.CurrentPath}>"); string input = Console.ReadLine().Trim(); while (input != endCommand) { CommandInterpreter.InterpredCommand(input); OutputWriter.WriteMessage($"{SessionData.CurrentPath}>"); input = Console.ReadLine().Trim(); } }
public static void StartReadingCommnads() { while (true) { OutputWriter.WriteMessage($"{SessionData.CurrentPath}> "); string input = Console.ReadLine(); input = input.Trim(); if (input == endCommand) { break; } CommandInterpreter.InterpredCommand(input); } }
public static void StartReadingCommands() { OutputWriter.WriteMessage($"{SessionData.currentPath}> "); string input = Console.ReadLine(); input = input.Trim(); while (true) { CommandInterpreter.InterpretCommand(input); OutputWriter.WriteMessage($"{SessionData.currentPath}> "); input = Console.ReadLine(); input = input.Trim(); if (input.Equals(EndCommand)) { break; } } }
public InputReader(CommandInterpreter interpreter) { this.interpreter = interpreter; }