Exemple #1
0
        public void Execute(ICollection <string> args)
        {
            if (args.Count > 0 && cmdHelper.IsMethodExist(this, args.ToList()[0]))
            {
                cmdHelper.ExecuteMethod(this, args);
                return;
            }

            ch.WriteLine("Need some args", ConsoleColor.Red);
        }
Exemple #2
0
        public void Execute(ICollection <string> args)
        {
            if (args.Count > 0 && cmdHelper.IsMethodExist(this, args.ToList()[0]))
            {
                cmdHelper.ExecuteMethod(this, args);
                return;
            }

            ExecuteCdCommandWithOutArgs(args);
        }
Exemple #3
0
        public void Run()
        {
            var antilStore = storageHelper.InitAntilStore();

            ch.WriteLine("Hello, I'm ANTIL and I'm Version Control System");
            ch.WriteLine("Use 'help' command to see all my features :)");
            do
            {
                ConsoleWrite(antilStore);
                var command = Console.ReadLine();

                cmdHelper.ExecuteMethod(controller, command);
            } while (true);
        }