private void _processNewCommand(string input) { var result = mArgsParser.Parse(input); mView.ClearInput(); IConsoleCommand command = null; try { command = mCommandsTable[result.Item1]; } catch (KeyNotFoundException) { mView.Log($"<color=red>Unknown command: </color> {result.Item1}"); return; } mView.Log(input); mView.Log(command.Run(result.Item2)); }