public void ChopCommands() { do { var splitCmd = BcConsole.ReadInput().ToLower().Split(null); //escape with 'exit' programe' if (splitCmd[0] == "exit") { break; } try { //factory cmd = creator.Build(splitCmd); //send command to spider Spider.Commands.Push(cmd); // print result BcConsole.PrintOutput(Spider.ExucCmd() + $"{Environment.NewLine}"); } catch (Exception ex) { BcConsole.PrintOutput($"Hey pal you have make some typing errors. Please, don't be upset and try again!{Environment.NewLine}Exception {ex.Message}{Environment.NewLine}"); } } while (BcConsole.IsExit()); }