示例#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);
        }
示例#2
0
文件: Cd.cs 项目: JFFby/ANTIL.VCS
        public void Execute(ICollection <string> args)
        {
            if (args.Count > 0 && cmdHelper.IsMethodExist(this, args.ToList()[0]))
            {
                cmdHelper.ExecuteMethod(this, args);
                return;
            }

            ExecuteCdCommandWithOutArgs(args);
        }
示例#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);
        }