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