Beispiel #1
0
        public void ExecuteCommand(string command)
        {
            if (string.IsNullOrEmpty(command))
            {
                return;
            }

            _commandParser.SetRoutes(_commandRouter.GetRoutes());

            var commandName = "";
            var parameters  = _commandParser.Parse(command, out commandName);
            var route       = _commandRouter.FindRoute(commandName, parameters);

            route.Execute(parameters, _console, _state);
        }