public static void StartReadingCommands() { while (true) { OutputWriter.WriteMessage($"{SessionData.currentPath}> "); string input = Console.ReadLine(); input = input.Trim(); CommandInterpreter.InterpredCommand(input); } }
public void StartReadingCommands() { OutputWriter.WriteMessage($"{SessionData.currentPath}" + "> "); string input = Console.ReadLine().Trim(); while (input != endCommand) { interpreter.InterpredCommand(input); OutputWriter.WriteMessage($"{SessionData.currentPath}" + "> "); input = Console.ReadLine().Trim(); } }
public static void StartReadingCommands() { bool closeConsole = false; while (!closeConsole) { OutputWriter.WriteMessage($"{SessionData.currentPath}>"); string input = Console.ReadLine(); input = input.Trim(); if (input.Equals(endCommand)) { closeConsole = true; continue; } CommandInterpreter.InterpredCommand(input); } }
public static void StartReadingCommands() { OutputWriter.WriteMessage($"{SessionData.CurrentPath}>"); string input; while ((input = Console.ReadLine()) != EndCommand) { if (string.IsNullOrWhiteSpace(input)) { continue; } input = input.Trim(); CommandInterpreter.InterpredCommand(input); OutputWriter.WriteMessage($"{SessionData.CurrentPath}>"); } }
public static void StartReadingCommands() { while (true) { OutputWriter.WriteMessage($"{SessionData.currentPath}> "); string input = Console.ReadLine().Trim(); if (input.Equals(endCommand)) { break; } if (string.IsNullOrEmpty(input)) { input = Console.ReadLine().Trim(); continue; } CommandInterpreter.InterpredCommand(input); } }
public static void StartReadingCommands() { OutputWriter.WriteMessage(SessionData.currentPath + "> "); string input = Console.ReadLine(); input = input.Trim(); CommandInterpreter.InterpredCommand(input); while (input != EndCommand) { if (input == EndCommand) { break; } OutputWriter.WriteMessage(SessionData.currentPath + "> "); input = Console.ReadLine(); input = input.Trim(); CommandInterpreter.InterpredCommand(input); } }
public static void StartReadingCommands() { OutputWriter.WriteMessage($"{SessionData.currentPath}> "); string input = Console.ReadLine(); input = input.Trim(); bool isInputQuit = false; while (!isInputQuit) { if (input == endCommand) { isInputQuit = true; break; } CommandInterpreter.InterpredCommand(input); OutputWriter.WriteMessage($"{SessionData.currentPath}> "); input = Console.ReadLine(); input = input.Trim(); } }