Beispiel #1
0
        ///<inheritdoc/>
        public ITask <string> Clean(IList <string> files)
        {
            GitCleanTask last = null;

            foreach (var batch in files.Spool(SpoolLength))
            {
                var current = new GitCleanTask(platform, batch, Token).Configure(platform.ProcessManager);
                if (last == null)
                {
                    last = current;
                }
                else
                {
                    last.Then(current);
                    last = current;
                }
            }

            return(last);
        }
Beispiel #2
0
        ///<inheritdoc/>
        public ITask <string> Clean(IList <string> files, IOutputProcessor <string> processor = null)
        {
            GitCleanTask last = null;

            foreach (var batch in files.Spool(SpoolLength))
            {
                var current = new GitCleanTask(batch, cancellationToken, processor).Configure(processManager);
                if (last == null)
                {
                    last = current;
                }
                else
                {
                    last.Then(current);
                    last = current;
                }
            }

            return(last);
        }