Esempio n. 1
0
        private void RunHandlerByCommand(Entity.Command command)
        {
            var commandHandler = _handlerFactory.GetCommandHandler(command.GetSubCommandName());

            commandHandler.Configure();

            if (IsHelpRequestedByUser(command))
            {
                PrintHelp(commandHandler);
                return;
            }

            commandHandler.Handle(command, _output);
        }