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); }
public void Execute(ICollection <string> args) { if (args.Count > 0 && cmdHelper.IsMethodExist(this, args.ToList()[0])) { cmdHelper.ExecuteMethod(this, args); return; } ExecuteCdCommandWithOutArgs(args); }
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); }