public SyncCommandLineOperation(CommandLine command, CommandLine.ExecutionFinishedHandler finishHandler) : base(command, finishHandler) { }
public static CommandLineOperation CreateSVNAction(string action, bool asynchronous, IEnumerable <string> assets, CommandLine.ExecutionFinishedHandler finishedHandler) { string workingDirectory = Application.dataPath + "\\..\\"; string arguments = action; if (assets.Count() > 0) { arguments += " \"" + assets.Aggregate((i, j) => i + "\" \"" + j) + "\""; } CommandLineOperation operation; if (asynchronous) { operation = new AsyncCommandLineOperation(new CommandLine("svn", "--non-interactive " + arguments, workingDirectory), finishedHandler); } else { operation = new SyncCommandLineOperation(new CommandLine("svn", "--non-interactive " + arguments, workingDirectory), finishedHandler); } return(operation); }
protected CommandLineOperation(CommandLine command, CommandLine.ExecutionFinishedHandler finishHandler) { this.command = command; this.command.ExecutionFinished += finishHandler; }