public static void Main()
 {
     StringBuilder output = new StringBuilder();
     ICatalog catalog = new Catalog();
     ICommandExecutor commandExecutor = new CommandExecutor();
     IList<ICommand> listOfCommands = ParseCommands();
     foreach (ICommand item in listOfCommands)
     {
         commandExecutor.ExecuteCommand(catalog, item, output);
     }
     Console.Write(output);
 }
        public static void Main()
        {
            StringBuilder output = new StringBuilder();
            Catalog cat = new Catalog();
            ICommandExecutor c = new CommandExecutor();

            foreach (ICommand item in Parse())
            {
                c.ExecuteCommand(cat, item, output);
            }

            Console.Write(output);
        }
        public static void Main()
        {
            StringBuilder    output          = new StringBuilder();
            Catalog          catalog         = new Catalog();
            ICommandExecutor commandExecutor = new CommandExecutor();
            List <ICommand>  listOfCommands  = ParseCommands();

            foreach (ICommand item in listOfCommands)
            {
                commandExecutor.ExecuteCommand(catalog, item, output);
            }

            Console.Write(output);
        }
        public static void Main()
        {
            Catalog catalog = new Catalog();

            ICommandExecutor commandExecutor = new CommandExecutor();
            StringBuilder    output          = new StringBuilder();

            for (string command = null; (command = Console.ReadLine().Trim()) != "End";)
            {
                commandExecutor.ExecuteCommand(catalog, new Command(command), output);
            }

            Console.Write(output);
        }
        public static void Main()
        {
            Catalog catalog = new Catalog();

            ICommandExecutor commandExecutor = new CommandExecutor();
            StringBuilder output = new StringBuilder();

            for (string command = null; (command = Console.ReadLine().Trim()) != "End"; )
            {
                commandExecutor.ExecuteCommand(catalog, new Command(command), output);
            }

            Console.Write(output);
        }
        public static void Main()
        {
            StringBuilder output = new StringBuilder();

            Catalog contentCatalog = new Catalog();
            ICommandExecutor commandExecutor = new CommandExecutor();

            var commands = ReadInputCommands();
            foreach (ICommand command in commands)
            {
                commandExecutor.ExecuteCommand(contentCatalog, command, output);
            }

            Console.Write(output);
        }